<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Am So., 2. Dez. 2018, 15:28 hat Ryan Joseph <<a href="mailto:ryan@thealchemistguild.com">ryan@thealchemistguild.com</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Dec 2, 2018, at 8:11 PM, Sven Barth via fpc-pascal <<a href="mailto:fpc-pascal@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-pascal@lists.freepascal.org</a>> wrote:<br>
> <br>
> Also the idea should be that a non-generic routine takes precedence. <br>
> <br>
<br>
I did this wrong then because the generic takes precedence now. Why shouldn’t the generic take precedence though? It comes after so you think it would hide the first one. The symbol “DoThis” is now a generic dummy (compiler term) so I didn’t know you could even get access to the first DoThis.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Specialization is expensive. If specialization can be avoided, it should be. Not to mention that the non-generic one could have more optimized code. </div><div dir="auto">Though to be sure I'll test with Delphi, we'll have to be compatible there anyway. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"></div></div></div>