<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Am 05.02.2018 13:02 schrieb "Martok" <<a href="mailto:listbox@martoks-place.de">listbox@martoks-place.de</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm having some logical problems with fgl generic lists and operator overloads.<br>
This is essentially the same issue as discussed last year on the forum as<br>
<<a href="http://forum.lazarus.freepascal.org/index.php?topic=36089.0" rel="noreferrer" target="_blank">http://forum.lazarus.<wbr>freepascal.org/index.php?<wbr>topic=36089.0</a>>.<br>
I know how to work around it, just... it doesn't seem very consistent.<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">While specializing the compiler only uses operator overloads (and helpers) that have been in scope during the declaration of the generic or those that are part of the types that are used for the specialization. This is definitely consistent. </div><div dir="auto">While I do plan to test what happens if I allow units that were not part of the generic's scope during its declaration that has the potential to open a whole new can of bugs. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"></blockquote></div></div></div></div>