[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Program end and __gc
- From: Krunal Rao <krunal.rao78@...>
- Date: Mon, 31 Oct 2011 22:22:34 +0000
Thank you!
On 31 October 2011 16:33, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> 1. Is it guaranteed that the still alive objects will be garbage collected and
>> the __gc metamethod invoked on them
>
> Yes, if the script ends normally, because lua_close will be called.
>
>> (barring "mutual referencing" situations
>> where such objects cannot be collected) ?
>
> *All* objects will be collected when the state is closed.
>
>