[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Program end and __gc
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 31 Oct 2011 14:33:58 -0200
> 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.