lua-users home
lua-l archive

Re: a new proposal for environments

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


On 2010年2月25日, 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

AltStyle によって変換されたページ (->オリジナル) /