lua-users home
lua-l archive

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

hello, "Jeff Wise" <>.

On Fri, 14 Sep 2007 08:47:36 -0500
"Jeff Wise" <> wrote:

> It would seem to me that an option like VB's "Option Explicit" where
> all variable names must be declared would help with this sort of
> problem.  Is this a major code effort, something that would
> compromise lua's philosophy, or .?
i'm using

luac -p -l db.lua | grep GETGLOBAL


luac -p -l db.lua | grep SETGLOBAL

to check for globals like 'f', 'c', etc. (i had a convention for local
variables naming). this was suggested by someone in this list.

maybe LuaLint does something like this, but i'm too lazy to check it.