[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: M Joonas Pihlaja <jpihlaja@...>
- Date: Thu, 25 Feb 2010 14:39:50 +0200 (EET)
On Thu, 25 Feb 2010, David Given wrote:
> Is there any chance of a facility to produce *compile* time errors if my code
> tries to reference globals? It would have to be possible to turn it on halfway
> through a chunk, once I'd finished loading locals from the global table (as in
> the example above).
As a butterfingers myself I second this request. With Lua 5.1 I
religiously grep for "GLOBAL" in the output of luac -l -p before
commiting.
Cheers,
Joonas