binary selectors ambiguity and space
johnson at cs.uiuc.edu
Sun May 14 11:37:51 UTC 2006
The solution for parsing 1 at -1 is easy, define @- to be a binary
selector just like @, except that it makes the y coordinate be
For everything else, write a converter to add the extra space.
Given Smalltalk's strict left to right evaluation order for messages,
I do not think that people would be surprised to learn that 1*-1 meant
that the *- message would be sent to 1 with 1 as an argument. In
fact, as a twenty-year Smalltalk veteran, I still think that the way
Smalltalk treats - is wierd.
More information about the Squeak-dev