in reply to Re^4: Variable Name Mistery. Who calls?
in thread Variable Name Mistery. Who calls?
Well, you could use PadWalker's var_name. var_name won't always work, though.
Before using PadWalker, ask yourself if you really think the tiny bit of extra usefulness to help debug the rare situation where a non-existant function is called more than once in a given statement is really worth the extra work, complexity and maintenance issues of displaying the variable's name (when there might not even be one).
|
|---|