[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __declared
- From: Jose Torre-Bueno <jtorrebueno@...>
- Date: Wed, 30 Oct 2013 16:52:16 -0700
On Oct 30, 2013, at 4:41 PM, Paige DePol <lual@serfnet.org> wrote:
>
> I do not believe that is part of the Lua core. I could not find any reference to '__declared' in the lua-5.2.2 code base and a grep for just 'declared' only returns results that are comments. I also looked in my own environment table and could not find a '__declared' field.
>
You are correct I just figured out it is created by the add on strict.lua which adds a metatable to _G and uses it to prevent the accidental creation of globals inside functions.