Aaron J Reichow wrote:
- The format for specifying a message is Class>>#message ; that
is your
message should have read Morph>>#delete.
Really? I use #delete to talk about the message, but Morph>>delete to talk about a particular method.
The convention is to use the #. It's kind of neat actually- do a print-it on "Morph>>#delete" in a workspace- the CompiledMethod for that method is returned. #delete can be passed (a symbol), and delete
cannot.
Yes, "Morph>>#delete" is a valid Smalltalk expression and
"Morph>>delete" is not.
Actually, the convention is to use "Object>>selector" without the hash mark. This can be verified by selecting ">>" and pressing Ctrl-E.
Now, in 1999 some guy decided it would be neat if this *was* valid Smalltalk and added #>> to Behavior as a shortcut for #compiledMethodAt:. Of course, this requires you to use a Symbol as parameter, hence the #. Maybe we should punish him for that? And remove the method? Bad boy, me, bad, bad boy ...