[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: A garbage collector question
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 8 Oct 2012 10:26:01 -0300
> 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