lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Thank you!

On 31 October 2011 16:33, Luiz Henrique de Figueiredo
<> 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.