lua-users home
lua-l archive

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


On Tuesday, August 12, 2014 12:53:56 PM Axel Kittenberger wrote:
> Which can simply be circumvented if it wouldn't be there:
> 
> local _G = _ENV

_ENV is not guaranteed to be the global environment. Your file may be loaded 
in a private environment. The point is to reach through the scope tree to the 
root that is visible to all parts of the program. (Unless policy doesn't 
allow, of course.) Say to redefine a global function such as `type'.

-- 
tom <telliamed@whoopdedo.org>