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

2022-11-18 Thread Vojtěch Čihák via fpc-pascal
Hi,   I specialized my generic abstract class in a different unit with this type:   TRec = record     A: Integer;     B: Integer;   end;   (A is for sorting, B is for testing of stability, i.e. for MergeSort, TimSort)   and compare function, declared with inline; directive:   function MyComptFunc(

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

2022-11-18 Thread Flávio Etrusco via fpc-pascal
Em seg., 14 de nov. de 2022 15:26, Vojtěch Čihák via fpc-pascal < fpc-pascal@lists.freepascal.org> 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 any type > (records or classes). > Part of t