[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: _ENV vs _G
- From: Tom N Harris <telliamed@...>
- Date: Tue, 12 Aug 2014 15:41:08 -0400
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>