aboutsummaryrefslogtreecommitdiff
path: root/manual/2html (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-07-03Local attributes can be used in list of local variablesRoberto Ierusalimschy3-81/+103
The syntax for local attributes ('const'/'toclose') was unified with the regular syntax for local variables, so that we can have variables with attributes in local definitions with multiple names; for instance: local <toclose> f, <const> err = io.open(fname) This new syntax does not implement constant propagation, yet. This commit also has some small improvements to the manual.
2019-07-01First take on constant propagationRoberto Ierusalimschy4-26/+73
2019-07-01Methods separated from metamethods in 'io'Roberto Ierusalimschy1-10/+20
In the 'io' library, changed the use of the metatable also as its own "method table", so that metamethods cannot be accessed as if they were methods. (For instance, 'io.stdin.__gc' does not result in the finalizer metamethod anymore.)
2019-06-26Small changes around C-stack limitRoberto Ierusalimschy4-10/+24
- Better documentation in 'testes/cstack.lua' about using 'debug.setCstacklimit' to find a good limit. - Constant LUAI_MAXCSTACK gets added CSTACKERR (extra stack for error handling), so that it is compatible with the argument to 'debug.setCstacklimit'.
2019-06-25'__call' metamethod can be any callable objectRoberto Ierusalimschy2-14/+31
Removed the restriction that a '__call' metamethod must be an actual function.
2019-06-25A few more tests for table access in the APIRoberto Ierusalimschy2-1/+63
Added tests where the table being accessed is also the index or value in the operation.