[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Features you would like to see
- From: Thomas Lauer <thomas.lauer@...>
- Date: Fri, 17 Aug 2007 14:39:53 +0100
roberto@inf.puc-rio.br (Roberto Ierusalimschy) wrote:
> > * an optional mode (similar to a C/C++ #pragma?) that requires *all*
> > variables, local and global, to be explicitly declared
>
> Have you tried the 'strict' module?
Sure and it certainly helps. But 'strict' is sort of checking for
globals through the (metatable) backdoor. I'd much prefer the compiler
complaining rather than having runtime checks do all the work.
--
cheers thomasl
web : http://thomaslauer.com/start