OrderedCollection new allButLast?

Paolo Bonzini bonzini at gnu.org
Fri Sep 14 13:07:36 UTC 2007


stephane ducasse wrote:
> it would be nice to have a consistent behavior.
> Did somebody check the ANSI and VW behavior?

ANSI says it is an error if:
   stop >= start and (start < 1 or start > the receiver's size).
   stop >= start and (stop < 1 or stop > the receiver's size).

i.e., any value for which stop < start is valid and should return an 
empty collection.  Whether #allButLast should behave the same, I won't say.

Paolo



More information about the Squeak-dev mailing list