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">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;</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 &lt;<a href="mailto:richi.moran@gmail.com">richi.moran@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&gt; Hi, today I found this:<br>
&gt;<br>
&gt; a := Object new -&gt; 1.<br>
&gt; b := Object new -&gt; 2.<br>
&gt; c := Object new -&gt; 3.<br>
&gt; d := Object new -&gt; 4.<br>
&gt;<br>
&gt; ss := {a. b. c.} asSortedCollection: [:a :b | a value &lt; b value].<br>
&gt;<br>
&gt; So far, it evaluates nicely, but when I try to do the following<br>
&gt;<br>
&gt; ss , {d}<br>
&gt;<br>
&gt; I get: Object doesNotUnderstand: &lt;<br>
&gt; Perhaps this is something you don&#39;t usually do with SortedCollections but I<br>
&gt; don&#39;t know. I believe the problem is that OrderedCollection&#39;s implementation<br>
&gt; of #copyReplaceFrom:to:with: creates a new collection without passing it the<br>
&gt; sortBlock. It can be easily fixed by overriding this method in<br>
&gt; SortedCollection and duplicating the code but I think it&#39;s ugly.<br>
&gt; What do you think?<br>
&gt;<br>
&gt;<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>
&gt;<br>
&gt;<br>
<br>
</blockquote></div><br></div>