lua-users home
lua-l archive

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


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