[Newbies] Simple Precedence question

Jeffrey Straszheim jstraszheim at comcast.net
Wed Feb 13 02:02:35 UTC 2008

So, I'm learning Smalltalk for the first time, and I have a very simple 
question regarding the precedence of the cascade  operator.

So, in this expression:

  self something: anObject selector ; anotherSelector.

Is the target of *anotherSelector* anObject, or self?

In other words, does it parse like this

  self something: (anObject selector ; anotherSelector).


 self something: (anObject selector) ; anotherSelector.

Also, what is the general principle that determines this.

Thanks in advance.

Jeffrey Straszheim

More information about the Beginners mailing list