logo       

>> notation: msg#00181

lang.smalltalk.squeak.beginners

Subject: >> notation


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.



--
View this message in context:
http://www.nabble.com/%3E%3E-notation-tf2729086.html#a7612000
Sent from the Squeak - Beginners mailing list archive at Nabble.com.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise