|
Posted by Heiko Richler on 12/14/06 21:40
Tom wrote:
> Is there a function to get a variable to return its name w/datatype of
> string? i.e.:
>
> $var would return "var"
No there is no such function.
Usually the function will get the value of the given Variable in an
Activation Record. The value carries no information about its source.
If an value is passed as an reference there may be a lot of variables
referring to the same value. Which variables name would you like? When
your code is compiled the result may not carry any names for variables.
Generally there is no good reason why you should need such an function.
What would you like to do?
Heiko
--
http://portal.richler.de/ Namensportal zu Richler
http://www.richler.de/ Heiko Richler: Computer - Know How!
http://www.richler.info/ private Homepage
Navigation:
[Reply to this message]
|