mirror of https://github.com/lua/lua.git
Browse Source
Start of the implementation of "scoped variables" or "to be closed" variables, local variables whose '__close' (or themselves) are called when they go out of scope. This commit implements the syntax, the opcode, and the creation of the corresponding upvalue, but it still does not call the finalizations when the variable goes out of scope (the most important part). Currently, the syntax is 'local scoped name = exp', but that will probably change.pull/21/head
Roberto Ierusalimschy
6 years ago
15 changed files with 81 additions and 22 deletions
Loading…
Reference in new issue