lua-users home
lua-l archive

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


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.