We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
like javascript does, local function inside functions captures all local variables and it stores in a "environment" as extern scope,
Example,
function f1(){ var i=0; return function(){ i++; Console::outln(i) } } var f=f1(); f(); // <-- it prints 1 f();// <-- it prints 2
So if the variable is not found as local, then it tries to find it in its environment.
The text was updated successfully, but these errors were encountered:
jespa007
No branches or pull requests
like javascript does, local function inside functions captures all local variables and it stores in a "environment" as extern scope,
Example,
So if the variable is not found as local, then it tries to find it in its environment.
The text was updated successfully, but these errors were encountered: