lua-users home
lua-l archive

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


> On Behalf Of David Collier
> Sent: dinsdag 16 oktober 2012 16:05
> Subject: warn on variable hiding
> 
> Is there anything I can do to get the interpreter to issue a warning
> when I hide a variable?
> 
> I almost never mean to do it and it's a real source of wasted time!
> 

That would incur runtime cost. ZeroBrano Studio code analysis feature will
detect it, just one <shift><F7> key press away (as a bonus it checks several
others as well, global assign, unused locals, etc.)