lua-users home
lua-l archive

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



Not that I know of. Lua "loses" variable names at parser time, they become just indices to local variable locations internally.

Why would you need that?

Maybe you can use a table to hold such variables, using table keys as names. But even then, values are values and don't really have names.

-asko


Wesley Smith kirjoitti 14.3.2007 kello 5:10:

Is there a way to stringify a variable name in Lua?  Something like:

stringify(variable) == "variable"    -- evaluates to true

thanks,
wes