lua-users home
lua-l archive

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


On 2012-10-08 9:26 AM, "Roberto Ierusalimschy" <roberto@inf.puc-rio.br> wrote:
>
> > 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
>

That seems to conflict with the statement that it calls exit and terminates the host program. How do other states survive that?