[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Lua 5.4.0 (alpha) now available
- From: Andrew Gierth <andrew@...>
- Date: Sat, 22 Jun 2019 07:09:18 +0100
>>>>> "Patrick" == Patrick Donnelly <batrick@batbytes.com> writes:
Patrick> For io.lines, Lua automatically closes the file after the last
Patrick> (successful) line. Unfortunately, there's no integration with
Patrick> the generic for loop in Lua 5.4.
Huh?
In 5.4, io.lines explicitly _does_ integrate with the generic for loop
to ensure the file is closed (if it was opened and isn't just using
io.input). What makes you think there is not?
--
Andrew.