This is the first post on my blog. I’d like to start with a little smalltalk riddle that one of my teacher used to say. So I have :

SomeRandomClass >> haveFun
Transcript show: ‘super = self ? ‘, (super = self) printString, String cr.
Transcript show: ‘self = super ? ‘, (self = super) printString

And When I do in workspace :

SomeRandomClass new haveFun

I got in Transcript :

super = self ? true
self = super ? false

How come ?

Advertisements