<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Levente, Hi Christoph,<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 20, 2021 at 3:26 PM Levente Uzonyi <<a href="mailto:leves@caesar.elte.hu">leves@caesar.elte.hu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi Christoph,<br>
<br>
On Mon, 20 Sep 2021, <a href="mailto:christoph.thiede@student.hpi.uni-potsdam.de" target="_blank">christoph.thiede@student.hpi.uni-potsdam.de</a> wrote:<br>
<br>
> Hi there.<br>
> <br>
> I think I found a bug in MethodDictionary. Try this:<br>
> <br>
>     UIManager methodDict select: [:ea | ea selector beginsWith: 'chooseFrom']<br>
> <br>
> Expected: A dictionary (I don't care which specialization) that I can enumerate to retrieve ca. 10 selectors.<br>
> Actual result: Answer looks empty in the inspector and in the print string; however, the array is not empty. The invariant mentioned in the class comment ((self basicAt: index) isNil = (array at: index) isNil) is violated.<br>
> <br>
> Maybe any of our Collections experts feels like looking into this - for now, I'm going to convert the dictionary before filtering it. :-)<br>
<br>
The implementation of #add: inherited from Dictionary is no sufficient for <br>
MethodDictionary.<br>
See Kernel-ul.1415 in the Inbox with the proposed fix for your case and <br>
some other methods.<br></blockquote><div><br></div><div class="gmail_default" style="font-size:small">Also see Kernel-eem.1415.  I didn't see your fix Levente before I had a go.  I'm happy which ever gets chosen.</div><div class="gmail_default" style="font-size:small"></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Levente<br>
</blockquote></div><div><br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div></div>