lua-users home
lua-l archive

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


I am glad you found out where the issue was! :)

I was thinking it may of been part of some sort of global var tracking system. I patched the parser and added a 'global' keyword for the explicit declaration of global variables, though instead of storing my table in _G I stored it in the registry.

-Paige



On Oct 30, 2013, at 4:52 PM, Jose Torre-Bueno <jtorrebueno@cox.net> wrote:

> 
> 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.
> 
> 
> 
> 
>