lua-users home
lua-l archive

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


On Sun, May 18, 2008 at 02:40:42PM -0400, Norman Ramsey wrote:
> Does anyone have suggestions for how to identify unused local variables?
> (Remember that to be unused, a local variable must not be used as an
> upvalue, either.)

IIRC metalua has a module to do that check (but work on the abstract
syntax I think, not on the bytecode), but I've never tried it,
nor packaged it :-(

I always feel the same need for locals, thus feedback is appreciated :-)

Cheers
-- 
Enrico Tassi