947a372f5860a76fcafb4a2845abc322e440d6fc
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.
Description
No description provided
Languages
C
66.7%
Lua
32.6%
Makefile
0.6%
Shell
0.1%