lua-users home
lua-l archive

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


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