> On 26 Nov 2018, at 11:14, Henrik Sperre Johansen via Pharo-users 
> <pharo-users@lists.pharo.org> wrote:
> 
> 
> From: Henrik Sperre Johansen <henrik.s.johan...@veloxit.no>
> Subject: Re: question about FFI
> Date: 26 November 2018 at 11:14:26 CET
> To: pharo-users@lists.pharo.org
> 
> 
> Yuriy Babah wrote
>> in Playground i'm doing:
> *
>> #(2 3) doWithIndex: [:each :i | xm at: i put: each].
>> #(3 4) doWithIndex: [:each :i | ym at: i put: each].
> *
>> 
>> whot i'm doing wrong?
> 
> So, you're putting 2 at index 2 of xm, and then writing 3 past end of array, 
> and in ym you're putting 3 and 4 at offsets past the end of array?
> 
> It's a wonder your image didn't crash, rather than return interpolation of
> the uninitialized values…

He is not doing that.
He is using #doWithIndex: 

So he is passing 2 at index 1 and 3 at index 2, then 3 at index 1 and 4 at 
index 2.

Esteban

> 
> Cheers,
> Henry
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> 
> 

Reply via email to