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

Giovanni Corriga giovanni at corriga.net
Thu Feb 8 09:21:53 UTC 2007

Il giorno gio, 08/02/2007 alle 07.53 +0100, Lukas Renggli ha scritto:
> > 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.

Does it? I tried browsing for senders on a 3.9 image before sending my
message, and it didn't work.


More information about the Beginners mailing list