Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | State in generic 'for' acts as a to-be-closed variable | Roberto Ierusalimschy | 2018-10-31 | 1 | -4/+4 |
| | | | | | | | | | | | 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. | ||||
* | Added a '__close' metamethod to file handles | Roberto Ierusalimschy | 2018-10-23 | 1 | -22/+35 |
| | |||||
* | Added directory to test file names in '$Id:' | Roberto Ierusalimschy | 2018-07-25 | 1 | -1/+1 |
| | | | | | | | From the point of view of 'git', all names are relative to the root directory of the project. So, file names in '$Id:' also should be relative to that directory: the proper name for test file 'all.lua' is 'testes/all.lua'. | ||||
* | Added manual and tests for version 5.4-w2 | Roberto Ierusalimschy | 2018-07-09 | 1 | -0/+832 |