[Newbies] anObject select: #aMethodName -- is this good Squeak?

Lukas Renggli renggli at gmail.com
Thu Feb 8 06:53:07 UTC 2007

> That was one of the things that I originally thought would weigh
> against this idiom, but found to my surprise that "Senders of"
> identified these references correctly-- I'd previously found symbols
> being included in my results and wondered why, but it looks as though
> someone was aware of this gotcha.

Yes, browsing senders also works. Squeak puts all the data needed by a
compiled method into a special place called literal array. So all
selectors you send (expect special ones like #ifTrue:, #ifFalse:,
#and:, #or, #whileTrue, ...) are in there, all symbols you use, all
classes you reference, all strings and numbers. If you browse for
senders, the system just looks at this literal array and doesn't make
the difference if this is just a symbol or an actual selector of a
message send.


Lukas Renggli

More information about the Beginners mailing list