Creating an array

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Creating an array

dukester
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

_______________________________________________
help-smalltalk mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-smalltalk