lua-users home
lua-l archive

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


Hi,

> Does that make sense?

Yes. IMHO, the sense it makes means that it would be somewhat hard to
precompile local variable name references to stack indexes, because these
indexes would depend on the scope from which the eval function is called.
The code could be much slower, and maybe longer.

If speed is not a problem, maybe you can implement this behaviour
using the debug API in combination with setglobal and getglobal
tagmethods...

Regards,
Diego.