[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: RFE: refman - adding mention of os.exit not closing variables with default arguments.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 26 Jun 2020 16:40:29 -0300
> [...] os.exit(x,true)
> closes the states, which is documented as "Destroys all objects in the
> given Lua state (calling the corresponding garbage-collection
> metamethods, if any)". I've always assumed this means ALL, I mean,
> including objects referenced by local vars in modules, main thread
> call stack and potentially suspended threads call stack. Is this
> correct?
The manual says "all objects", so your question boils down to whether
all means ALL. Yes, all means ALL, regardless capitalization.
-- Roberto