[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-smalltalk] Creating an array
From: |
Duke Normandin |
Subject: |
[Help-smalltalk] Creating an array |
Date: |
Mon, 12 Aug 2013 12:59:49 -0600 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 |
After a long enough hiatus, I'm re-visiting Smalltalk :)
http://www.gnu.org/software/smalltalk/manual/html_node/Arrays.html#Arrays
says:
[quote]
There is a shorthand for describing the messages you send to
objects. You just run the message names together. So we would say
that our array accepts both the at: and at:put: messages.[/quote]
Given:
x := Array new: 20
x at: 1 put: 99
What would be the shortcut syntax for this array assignment? Or am I
misunderstanding what I quoted above?? TIA...
Duke