[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a new proposal for environments
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 25 Feb 2010 09:44:09 -0300
> Hmm. If I'm *not* using globals, can I assign nil to _ENV to get runtime
> errors if I tyop the name of a local?
Yes.
> Is there any chance of a facility to produce *compile* time errors if my
> code tries to reference globals?
See http://lua-users.org/wiki/DetectingUndefinedVariables for a patch to
the parser that allows you to do that. That page discusses other solutions.