RunArray immutable?

Damien Cassou damien.cassou at laposte.net
Mon Feb 12 09:26:04 UTC 2007


On Feb 12, 2007, at 10:15 AM, Lukas Renggli wrote:

>> 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: ?
>
> Have a look at TextAndTextStreamTest. I think this is what the
> RunArray is supposed to do (as opposed to what a generic collection
> should be able to do).

I don't understand what you are talking about. Do you agree with the  
addition of #at:put: or do you think RunArrays should not be modified ?

-- 
Damien Cassou



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


More information about the Squeak-dev mailing list