From: Dave Thomas Date: 2004-04-03T01:30:34+09:00 Subject: Re: Variable names On Apr 2, 2004, at 10:20, David King Landrith wrote: > Is there any way to access the name of a given variable instance from > within it? In other words, for any object x, is there C function to > which I can pass self to determine that the program calls it 'x'? You have the file name and line number, and you may even have the file itself in SCRIPT_LINES, so you could cheat and find the name from that. I'm interested in tis experiment: how often does it catch a problem that you didn't catch though unit testing? Putting that another way: how often do you see these type errors in testing, and how often in production? Cheers Dave