Hi Another Dave,
the >> is used in an informal printout (or in code snippets posted), like in
UndefinedObject(Object)>>doesNotUnderstand: #asTraitComposition
Do this in a workspace: (nil asTraitComposition) and you'll get lots of >> printed out.
But when using >> as message selector,
(Object>>#doesNotUnderstand:) inspect
results in the CompiledMethod.
HTH.
/Klaus
On Thu, 30 Nov 2006 02:42:20 +0100, Another Dave wrote:
I'm having trouble understanding the '>>' in some Smalltalk programs, Such as this, from Smalltalk By Example:
MyClass>>doThis array := Array new: 3. array at: 1 put: 2.
I can understand that we are creating a new 3-place instance of Array, named array, and putting 2 in the first slot. But I don't understand what MyClass,
, or doThis are doing.