HI

doing the pharo tutorial and I wanted to know how pharo viewed the dynamic
array at index 3(seems smalltalk starts at 1 not 0)

>From the xample simple enough
{ (2+3) . (6*6) . 'hello', ' Stef'} size. 3

from the strings example we found index by

'ProfStef' at: 1. $P

so I thought { (2+3) . (6*6) . 'hello', ' Stef'} at 3. would let me know
what the array was evaluated to after execution but it doesn't. Is it
confused because it doesn't know whether I want the third array element or
the third character?

Led me to wonder the correct way if doing this, so that I could evaluate
array 1 * 2.

{ (2+3) . (6*6) . 'hello', ' Stef'} at 1 * at 2. 180


Cheers

-- 
View this message in context: 
http://forum.world.st/Dynamic-Arrays-view-index-at-execution-tp3090891p3090891.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.

Reply via email to