[fpc-devel] Standard generic classes

J. Gareth Moreton gareth at moreton-family.com
Thu Jun 6 22:48:45 CEST 2019


You are right George.  I'm not entirely sure what the standards are with 
everything, but it would be nice to have something public and concrete.  
Things that already exist cannot have their API changed - they can be 
refactored, but as a black box it might be completely identical.  Things 
like changing a sorting algorithm is no problem (so long as it's still a 
comparison sort).

Gareth aka. Kit


On 06/06/2019 17:23, George Bakhtadze wrote:
> It would be also great if there was an official set of interfaces (not 
> necessarily in interface type form but API description) describing all 
> these generic containers and algorithms.
> Thus, all implementations which follow these interfaces are 
> interchangeable.
> I believe this is even more important than 4-th or 5-th implementation.
> ---
> Best regards, George
> 06.06.2019, 17:58, "Ben Grasset" <operator97 at gmail.com>:
>
>     On Wed, Jun 5, 2019 at 11:11 AM Sven Barth via fpc-devel
>     <fpc-devel at lists.freepascal.org
>     <mailto:fpc-devel at lists.freepascal.org>> wrote:
>
>         You could try to adjust the FGL unit to use the pluggable
>         sorting system introduced here:
>         https://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=41167
>
>     Wouldn't that system itself need to be generic and not just use
>     void pointers first? Or is that part of what you meant?
>     IMO something FGL would benefit from also is the removal of the
>     probably-not-the-best-design inheritance from non-generic TFPSList
>     to everything else, which prevents inlining in a large number of
>     places (the compiler notes indicating such are visible basically
>     any time you use anything from FGL.)
>     ,
>
>     _______________________________________________
>     fpc-devel maillist - fpc-devel at lists.freepascal.org
>     <mailto:fpc-devel at lists.freepascal.org>
>     http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190606/62e3b410/attachment.html>


More information about the fpc-devel mailing list