<div dir="ltr"><div><div>I am terribly sorry, this was a completely lazy question.<br><br></div>So far, I couldn't reproduce the problem in a small example. I'll look deeper into this before posting again about it.<br>
<br></div>LMB<br><div><div><br><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Nov 30, 2013 at 12:07 PM, Shammah Chancellor <span dir="ltr"><<a href="mailto:anonymous@coward.com" target="_blank">anonymous@coward.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 2013-11-30 13:39:15 +0000, Leandro Motta Barros said:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I my FewDee game prototyping library (<a href="https://bitbucket.org/lmb/fewdee" target="_blank">https://bitbucket.org/lmb/<u></u>fewdee</a>) I ignored most of the usual reccomendations like "be careful with the GC, it's slow" and "associative arrays are buggy in D, so avoid them". I just used whatever I found convenient to have my stuff running with minimal effort.<br>
<br>
So, I did something that may be an abuse of D's associative arrays:<br>
<br>
alias<br>
Tuple!(const(GameState), ALLEGRO_EVENT_TYPE)<br>
stateTypePair;<br>
<br>
// GameState is a class, ALLEGRO_EVENT_TYPE is<br>
// some integral data type<br>
<br>
EventHandler[EventHandlerID][<u></u>stateTypePair]<br>
_eventHandlers;<br>
<br>
// EventHandler is a delegate. EventHandlerID is<br>
// an integral type.<br>
<br>
This used to work (surprisingly? :-) ) until very recently (when I upgraded to DMD 2.064, it seems).<br>
<br>
Now, I am getting this<br>
<br>
object.Error: TypeInfo.compare is not implemented<br>
<br>
when I try to use my '_eventHandlers' AA.<br>
<br>
So, any suggestions?<br>
<br>
Thanks a lot!<br>
<br>
LMB<br>
</blockquote>
<br></div></div>
DMD version? Can you post a reduced example which produces the error. I can't tell where a typeinfo would be getting used from that example.<span class="HOEnZb"><font color="#888888"><br>
<br>
-Shammah<br>
<br>
</font></span></blockquote></div><br></div>