[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is lua_getglobal exposed at the Lua level?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 13 Nov 2018 14:56:43 -0200
> That's a no. _ENV is set when a chunk is compiled. If you specify a
> different value for the environment for a chunk and you do not provide
> access (direct or indirect) to the global environment you have no access to
> that global environment. This is a feature, otherwise you could not build a
> sandbox.
Gé's last sentence is crucial in this discussion.
-- Roberto