Problem in #sorted: for some collections
col := OrderedCollection new. col add: 1. col add: 3. col add: 2. col sorted. col you will see that col is now sorted. This is wrong. We expect #sorted to return a sorted collection without changing the receiver. This code col := Array with: 1 with: 3 with: 2. col sorted. col works as expected. -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
can you add a bug tracker entry? On Aug 19, 2013, at 5:34 PM, Damien Cassou <damien.cassou@gmail.com> wrote:
col := OrderedCollection new. col add: 1. col add: 3. col add: 2. col sorted. col
you will see that col is now sorted. This is wrong. We expect #sorted to return a sorted collection without changing the receiver.
This code
col := Array with: 1 with: 3 with: 2. col sorted. col
works as expected.
-- Damien Cassou http://damiencassou.seasidehosting.st
"Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
On Tue, Aug 20, 2013 at 10:31 AM, Marcus Denker <marcus.denker@inria.fr> wrote:
can you add a bug tracker entry?
already done: https://pharo.fogbugz.com/default.asp?11431#83246 -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." Winston Churchill
participants (2)
-
Damien Cassou -
Marcus Denker