Re: [fpc-pascal] How to inline CompareFunc to Sort method in generic abstract class

2022-11-19 Thread Hairy Pixels via fpc-pascal
> On Nov 20, 2022, at 4:26 AM, Sven Barth via fpc-pascal > wrote: > > // this kind of constraint that uses T does not work yet > generic TList> = class > procedure Sort; > end; Does this mean the generic param “Comparer” has a constraint which is "specialize TComparer”? I’ve not ever

Re: [fpc-pascal] How to inline CompareFunc to Sort method in generic abstract class

2022-11-19 Thread Sven Barth via fpc-pascal
Am 14.11.2022 um 19:26 schrieb Vojtěch Čihák via fpc-pascal: Hi, I wrote a generic abstract class - a list based on dynamic array (i.e. array of T;) and this class can be specialized elsewhere with any type (records or classes). Part of the class is sorting. There are more ways how to deliver

Re: [fpc-pascal] How to inline CompareFunc to Sort method in generic abstract class

2022-11-19 Thread Sven Barth via fpc-pascal
Am 18.11.2022 um 20:44 schrieb Flávio Etrusco via fpc-pascal: Em seg., 14 de nov. de 2022 15:26, Vojtěch Čihák via fpc-pascal escreveu: Hi, I wrote a generic abstract class - a list based on dynamic array (i.e. array of T;) and this class can be specialized elsewhere with a