lua-users home
lua-l archive

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

> but __gc runs triggered by lua_close() will be able to reach dead
> objects (and not necessarily know it) -- ouch.

That is not correct. __gc runs triggered by lua_close() are able to
reach finalized objects, but not dead ones. lua_close only starts
killing objects after all __gc methods were called. (At least this
is what should happen. There may be a bug somewhere...)

-- Roberto