OrderedCollection new allButLast?

Philippe Marschall philippe.marschall at gmail.com
Thu Sep 13 19:12:10 UTC 2007


2007/9/13, stephane ducasse <stephane.ducasse at free.fr>:
> it would be nice to have a consistent behavior.
> Did somebody check the ANSI

> and VW behavior?

VW is same as Squeak.
GST doesn't have #allButLast

Cheers
Philippe

> 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