lua-users home
lua-l archive

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


> For __gc to run the Lua state must be closed as mentioned with the 5.2
> os.exit(). What isn't mentioned is what Lua state is being closed,
> but I would assume only the current state. Some clarification in the
> manual would be nice.

>From Lua you cannot see more than one Lua state. The entire world is
one Lua state. So, that state is the one that os.exit closes. There is
no other.

-- Roberto