[FIX][ENH] SortedCollection robustness & speedup
Stefan Matthias Aust
sma at 3plus4.de
Sat Apr 29 16:37:13 UTC 2000
While adding the new version of #addAll: to my image, I noticed that this
method was never implemented correctly. Instead of returning the added
collection as all other implementors of #addAll: do, it returned a the
receiver. Fixing this as Georg did will break at least
OrderedCollection>>sortBy:
I reimplemented this method as
^ (self asSortedCollection: aBlock) asOrderedCollection
which should do the job. Hopefully nothing else breaks. I've attached the
whole change set so that you all can test the code.
bye
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 007SortedCollectionFix-go.cs
Type: application/octet-stream
Size: 2881 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000429/5405e9c6/007SortedCollectionFix-go.obj
More information about the Squeak-dev
mailing list
|