On Wed, 23 Dec 2009, Stéphane Ducasse wrote:

http://code.google.com/p/pharo/issues/detail?id=1660
and in the inbox.

Note that this is just a fix in squeak, and it only works if OrderedCollection understands #sort:, which is not the case in pharo.


Levente


Stef



On Dec 23, 2009, at 1:22 PM, Stéphane Ducasse wrote:

Hi Levente

why don't you help us too?

Stef


From: [email protected]
Date: December 23, 2009 12:29:08 PM GMT+01:00
To: [email protected], [email protected]
Subject: [squeak-dev] The Trunk: Collections-ul.260.mcz
Reply-To: [email protected]

Levente Uzonyi uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ul.260.mcz

==================== Summary ====================

Name: Collections-ul.260
Author: ul
Time: 23 December 2009, 12:23:32 pm
UUID: de4b02f8-b0aa-5e47-93f7-4a3e3c300060
Ancestors: Collections-ul.259

- make sure that SortedCollection's #sort and #sort: update the sortBlock

=============== Diff against Collections-ul.259 ===============

Item was added:
+ ----- Method: SortedCollection>>sort: (in category 'sorting') -----
+ sort: aSortBlock
+       "Sort this collection using aSortBlock. The block should take two 
arguments
+       and return true if the first element should preceed the second one.
+       If aSortBlock is nil then <= is used for comparison."
+
+       super sort: aSortBlock.
+       sortBlock := aSortBlock!





_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to