[squeak-dev] OrderedCollection and asOrderedCollection
Frank Shearar
frank.shearar at gmail.com
Wed Jul 18 21:08:07 UTC 2012
Is there any particular reason why we don't have OrderedCollection >>
#asOrderedCollection simply return self?
Right now (OrderedCollection with: 1) asOrderedCollection calls
Collection >> #asOrderedCollection, which calls self as:
OrderedCollection, which copies the collection.
This would also make OrderedCollection work a bit more like Array -
Array >> #asArray simply returns self.
frank
More information about the Squeak-dev
mailing list
|