<div dir="auto"><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Marco van de Voort <<a href="mailto:fpc@pascalprogramming.org">fpc@pascalprogramming.org</a>> schrieb am Sa., 8. Juni 2019, 13:43:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Op 2019-06-06 om 16:57 schreef Ben Grasset:<br>
> On Wed, Jun 5, 2019 at 11:11 AM Sven Barth via fpc-devel <br>
> <<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-devel@lists.freepascal.org</a> <br>
> <mailto:<a href="mailto:fpc-devel@lists.freepascal.org" target="_blank" rel="noreferrer">fpc-devel@lists.freepascal.org</a>>> wrote:<br>
><br>
> You could try to adjust the FGL unit to use the pluggable sorting<br>
> system introduced here:<br>
> <a href="https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=41167" rel="noreferrer noreferrer" target="_blank">https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=41167</a><br>
><br>
><br>
> Wouldn't that system itself need to be generic and not just use void <br>
> pointers first? Or is that part of what you meant?<br>
><br>
> IMO something FGL would benefit from also is the removal of the <br>
> probably-not-the-best-design inheritance from non-generic TFPSList to <br>
> everything else, which prevents inlining in a large number of places <br>
> (the compiler notes indicating such are visible basically any time you <br>
> use anything from FGL.)<br>
><br>
Yes, but that would be incompatible. However maybe some simple object <br>
based types next to it would furfill the remaining purpose of the unit ( <br>
cases where you need some simple generic container in places that <br>
haven't access to the ones in packages (fcl-stl, rtl-generics)).<br>
<br>
But I would keep it simple and straightforward, and save the complex <br>
stuff for the more complicated libraries.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Yes, that would be a good compromise. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>