Symbols to Class Names?

Randal L. Schwartz merlyn at stonehenge.com
Mon Mar 12 18:18:58 UTC 2001


>>>>> "Dan" == Dan Shafer <dshafer at yahoo.com> writes:

Dan> Thanks, Randal. But I think I didn't state my question clearly enough.
Dan> I have done a select: to retrieve from Smalltalk all of the classes in the
Dan> image. They are returned to me, however, as an IdentitySet (not an
Dan> IdentityDictionary as I incorrectly stated in my message) containing Symbols
Dan> rather than class names. What I want to do now is to enumerate over this
Dan> returned IdentitySet and, for each element it contains, obtain certain
Dan> information about the class to which the Symbol corresponds.

What part of my code didn't do that?  Did you try it? :)

/me is puzzled

Or if you're doing it on all classes, see Smalltalk>>allClassesDo:
which contains code suprisingly like my previous post. :)

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!





More information about the Squeak-dev mailing list