RunArray immutable?

Damien Cassou damien.cassou at laposte.net
Mon Feb 12 08:44:04 UTC 2007


Hi,

While writing tests for RunArray, I have tried this:

array := RunArray new: 5 withAll: 2.
array at: 3 put: 5.

However, the second line generated an error: "Instances of RunArray  
are not indexable". I don't see why, conceptually speaking, RunArray  
would be immutable. They should behave just like arrays in my opinion.

Do you want to try to write #at:put: ?

-- 
Damien Cassou



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070212/e583b697/attachment.htm


More information about the Squeak-dev mailing list