lua-users home
lua-l archive

"Stringizing" a variable name

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


I'm trying to find the Lua counterpart for the C++ '#' directive (turn
a variable name into a string). Is there one? Such that:
 g = globals()
 foreach(g, function(i, v) print( *stringize(i)* .."= "..type(v)))
Thanks,
Simon

AltStyle によって変換されたページ (->オリジナル) /