OrderedCollection new allButLast?

Gary Chambers gazzaguru2 at btinternet.com
Wed Sep 12 09:00:24 UTC 2007


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