Thanks! I will try that<div><br><br><div class="gmail_quote">On Tue, Jul 28, 2009 at 6:14 PM, Nicolas Cellier <span dir="ltr"><<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2009/7/28 Ricardo Moran <<a href="mailto:richi.moran@gmail.com">richi.moran@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Hi, today I found this:<br>
><br>
> a := Object new -> 1.<br>
> b := Object new -> 2.<br>
> c := Object new -> 3.<br>
> d := Object new -> 4.<br>
><br>
> ss := {a. b. c.} asSortedCollection: [:a :b | a value < b value].<br>
><br>
> So far, it evaluates nicely, but when I try to do the following<br>
><br>
> ss , {d}<br>
><br>
> I get: Object doesNotUnderstand: <<br>
> Perhaps this is something you don't usually do with SortedCollections but I<br>
> don't know. I believe the problem is that OrderedCollection's implementation<br>
> of #copyReplaceFrom:to:with: creates a new collection without passing it the<br>
> sortBlock. It can be easily fixed by overriding this method in<br>
> SortedCollection and duplicating the code but I think it's ugly.<br>
> What do you think?<br>
><br>
><br>
<br>
</div></div>I think you got it right and this is a known bug<br>
<a href="http://bugs.squeak.org/view.php?id=6535" target="_blank">http://bugs.squeak.org/view.php?id=6535</a><br>
The fix cannot be loaded automatically because the ordre of changes<br>
matters and I did not care enough of it...<br>
But you can load the changes in a ChangeList thru the FIleBrowser and<br>
manually file in change by change in the interim if you are<br>
interested.<br>
<br>
Nicolas<br>
<br>
><br>
><br>
<br>
</blockquote></div><br></div>