
Getting a dictionay's name
Quote:
>If there is a dictionary on the stack, does anyone know how to obtain the
>name of that dictionary. I realize some are not given names, but if there
>is a name, how do I get it. Thanks for any leads on this.
There is no direct connection in a typical interpreter. The
relationship is part of the parent dictionary; and an object has no
knowledge of its parent(s).
The only way you can find out the name (or a name, it may have
several) is to look for that dictionary in likely places. Enumerating
each dictionary on the dictionary stack, looking for one containing
your target, may find a match.
PSAlter makes this easier; for every nonempty composite object that is
ever given a name, the first given name is recorded as part of the
object and is hence available.
----------------------------------------
Visit http://www.*-*-*.com/ ,
PSAlter, psalters, tea, and small {*filter*} animals. And stuff.