<div class="gmail_quote">On Thu, Jun 18, 2009 at 11:43 AM, Michael Lucas-Smith <span dir="ltr">&lt;<a href="mailto:mlucas-smith@cincom.com">mlucas-smith@cincom.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Julian Fitzell wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Why not? Isn&#39;t that a bug? (I&#39;m only half joking :) )<br>
<br>
According to the ANSI spec, though, #allSubclasses need not necessarily return on OrderedCollection (in fact, why should it be ordered?). Maybe that&#39;s too theoretical an issue to worry about but if you&#39;re going to force a conversion of one of the collections, it&#39;s a bit odd not to ensure the type of the other one.<br>

<br>
If this is coming up now, why don&#39;t we at least define what kind of collection #potentialParents should return (I don&#39;t think it needs to be ordered?), write a unit test for it, and make sure it always returns that. It might be better to do &quot;allSubclasses asSet&quot;?<br>

<br>
</blockquote></div>
I didn&#39;t really think about it this way. You can&#39;t &quot;concatenate&quot; two sets together - you can merge them, but it pretty much means that #, doesn&#39;t exist on Set in VW. I published a new version that makes no attempt to settle the dispute of OrderedCollection vs Set one way or another. Instead, it uses #addAll: which should be safe across Smalltalks.<br>

</blockquote><div><br></div><div>Ah yes, good point. I never really thought about #, being &quot;concatenate&quot; rather than just &quot;combine&quot;. #addAll: should be fine unless, of course, #allSubclasses returns an Array on some platform :) we can probably cross that bridge if we come to it... ;)</div>
<div><br></div><div>Julian</div></div>