Re: [Pharo-users] question about FFI

2018-11-26 Thread Henrik Sperre Johansen via Pharo-users
--- Begin Message --- 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 yo

Re: [Pharo-users] question about FFI

2018-11-26 Thread Henrik Sperre Johansen via Pharo-users
--- Begin Message --- Nevermind me, hadn't had my coffee yet, for some reason I didn't see it was doWithIndex: you were using :/ Still a bit scary that FFIExternalArray at:put: doesn't perform bounds checks... Cheers, Henry -- Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.htm