lua-users home
lua-l archive

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



On Jan 20, 2009, at 4:26 PM, Ben Aurel wrote:

[1] http://lua-users.org/wiki/LocalByDefault

This is excactly what I was looking for. Thanks for that.

Personally, I like local... it tells me where my variables are :)

Also... regarding your second point "What if the developer forgets a 'local"'?"...

Check etc/strict.lua as well as the wiki:

http://lua-users.org/wiki/DetectingUndefinedVariables

Luiz Henrique de Figueiredo posted a handy script as well a while back:

http://lua-users.org/lists/lua-l/2006-05/msg00306.html

Cheers,

--
PA.
http://alt.textdrive.com/nanoki/