OrderedCollection new allButLast?

stephane ducasse stephane.ducasse at free.fr
Thu Sep 13 19:02:57 UTC 2007


it would be nice to have a consistent behavior.
Did somebody check the ANSI and VW behavior?

Stef

On 12 sept. 07, at 11:00, Gary Chambers wrote:

> Looks like a problem with SequenceableCollection>>#copyFrom:to:
>
> Boils down to copyFrom: 1 to: -1
> I would *expect* it to return an empty instance of the species (since
> copyFrom: 1 to: 0 would).
>
> RunArray and OrderedCollection both make a check that provides this
> behaviour.
>
>> -----Original Message-----
>> From: squeak-dev-bounces at lists.squeakfoundation.org
>> [mailto:squeak-dev-bounces at lists.squeakfoundation.org]On Behalf Of
>> Andreas Raab
>> Sent: 12 September 2007 12:58 AM
>> To: The general-purpose Squeak developers list
>> Subject: OrderedCollection new allButLast?
>>
>>
>> Hi -
>>
>> I just noticed that "OrderedCollection new allButLast" reacts very
>> different to, say, "Array new allButLast". And I'm wondering  
>> whether we
>> expect that effect from OrderedCollection?
>>
>> Cheers,
>>    - Andreas
>>
>>
>
>
>




More information about the Squeak-dev mailing list