Fun with Kernel :)
ducasse at iam.unibe.ch
Sat Apr 5 06:22:10 UTC 2003
>> (MessageSet isPseudoSelector: selector)
>> ifTrue: ["Not really a selector"
>> ^ nil].
>> source _ self
>> sourceCodeAt: selector asSymbol
>> ifAbsent: [^ nil].
> Regarless of what those "pseudo selectors" selectors are it is clearly
> case that if you ever implement one of them, the method will not work
> correctly. However, for any selector which is not implemented the
> will answer nil anyway. So what's the point in the test?! None
Exactly I was really puzzled.
> - Andreas
Prof. Dr. Stéphane DUCASSE
"if you knew today was your last day on earth, what would you do
different? ... especially if,
by doing something different, today might not be your last day on
"The best way to predict the future is to invent it..." Alan Kay.
Open Source Smalltalks: http://www.squeak.org,
Free books for Universities at
Free Online Book at
More information about the Squeak-dev