[Newbies] Re: >> notation
Klaus D. Witzel
klaus.witzel at cobss.com
Thu Nov 30 02:28:59 UTC 2006
Hi Another Dave,
the >> is used in an informal printout (or in code snippets posted), like
Do this in a workspace: (nil asTraitComposition) and you'll get lots of >>
But when using >> as message selector,
results in the CompiledMethod.
On Thu, 30 Nov 2006 02:42:20 +0100, Another Dave wrote:
> I'm having trouble understanding the '>>' in some Smalltalk programs,
> as this, from Smalltalk By Example:
> array := Array new: 3.
> array at: 1 put: 2.
> I can understand that we are creating a new 3-place instance of Array,
> array, and putting 2 in the first slot. But I don't understand what
>>> , or doThis are doing.
More information about the Beginners