[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] lglob 0.8 Extended Globals Checker for Lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 29 Apr 2013 19:27:12 -0300
> But... now I'm a bit confused by what you consider a, err, 'global'?
Yes, I think Lua 5.2 now blurs the distinction between free variables
and fields in _ENV. Once it applies the transformation x -> _ENV.x,
there is no way by looking at the generated code to know that x was
once free.
Thus, being practical, "global" must mean a field of _ENV, not a free name.