Re: Stringification
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Stringification
- From: Asko Kauppi <askok@...>
- Date: 2007年3月14日 14:00:05 +0200
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