On 21/08/2021 20:06, Ryan Joseph via fpc-pascal wrote: > type > generic TSList<T> = class > type > TComparator = record > private type > TFuncProc = function (constref left, right: T; context: pointer): > integer; > TFuncNested = function (constref left, right: T; context: pointer): > integer is nested;
You can pass global functions to "is nested" procvars, so at least these two don't need to be separate. OTOH, there's another type: cblocks :) Jonas _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal