lua/testes
Roberto Ierusalimschy 947a372f58 State in generic 'for' acts as a to-be-closed variable
The implicit variable 'state' in a generic 'for' is marked as a
to-be-closed variable, so that the state will be closed as soon
as the loop ends, no matter how.

Taking advantage of this new facility, the call 'io.lines(filename)'
now returns the open file as a second result. Therefore,
an iteraction like 'for l in io.lines(name)...' will close the
file even when the loop ends with a break or an error.
2018-10-31 14:54:45 -03:00
..
libs Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
all.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
api.lua To-be-closed variables in the C API 2018-10-25 15:30:15 -03:00
attrib.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
big.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
bitwise.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
bwcoercion.lua Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
calls.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
closure.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
code.lua Back with optimization for 'if cond then goto' 2018-10-30 15:04:19 -03:00
constructs.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
coroutine.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
db.lua Complete implementation of to-be-closed variables 2018-10-22 14:55:51 -03:00
errors.lua Better error messages for invalid operands in numeric 'for' 2018-10-30 15:46:56 -03:00
events.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
files.lua State in generic 'for' acts as a to-be-closed variable 2018-10-31 14:54:45 -03:00
gc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
gengc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
goto.lua Back with optimization for 'if cond then goto' 2018-10-30 15:04:19 -03:00
literals.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
locals.lua State in generic 'for' acts as a to-be-closed variable 2018-10-31 14:54:45 -03:00
main.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
math.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
nextvar.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
pm.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
sort.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
strings.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
tpack.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
utf8.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
vararg.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
verybig.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00