[Top][All Lists]

[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 14:38:39 -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 :)


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]


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...


“Tolerance becomes a crime when applied to evil.” ― Thomas Mann

reply via email to

[Prev in Thread] Current Thread [Next in Thread]