lua-users home
lua-l archive

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


> On Jul 15, 2010, at 9:04 AM, Roberto Ierusalimschy wrote:
> 
> [...]
> I would suggest the following tweaks:
> 
> * "global a" as meaning that "a" should be interpreted as "_ENV.a"
> should be with respect to a specific definition of "_ENV". You may
> have already meant that, but I don't think you say so above. Which
> _ENV? My feeling is that it probably should tie to the chunk level
> _ENV, but I could be persuaded otherwise.

'"a" is translated to "_ENV.a"' means a syntactical translation.
So, the _ENV is the one visible at that point. (As stated in another
place, 'global' would only control the sugar 'a' -> '_ENV.a'; if
enabled, the sugar is the same.)


> All that said, I'm not sure this buys enough to be worth the trouble.

We too.

-- Roberto