Re: Yet another proposal for <toclose> (was Re: [ANN] Lua 5.4.0 (alpha) now available)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Yet another proposal for <toclose> (was Re: [ANN] Lua 5.4.0 (alpha) now available)
- From: Sergey Kovalev <kovserg33@...>
- Date: 2019年6月28日 17:58:35 +0300
In case of memory error best solution is abort execution ( terminate process )
пт, 28 июн. 2019 г. в 17:48, Roberto Ierusalimschy <roberto@inf.puc-rio.br>:
>
> > Why we need extra functionality if it could be done with existing one?
> >
> > [...]
> > local f=auto(io.close){ io.open "foobar" } -- will be closed
>
> It won't, if the table creation raises a memory error.
>
> -- Roberto
>