[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Jerome Vuarand's reply to my "table return" query
- From: Ketmar Dark <ketmar@...>
- Date: Fri, 14 Sep 2007 17:47:43 +0300
hello, "Jeff Wise" <email@example.com>.
On Fri, 14 Sep 2007 08:47:36 -0500
"Jeff Wise" <firstname.lastname@example.org> 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 .?
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.