> On Jan 2, 2019, at 3:13 PM, Alexander Shishkin via fpc-pascal > <fpc-pascal@lists.freepascal.org> wrote: > > I`d like to see constant parameter to be constrained with type > > type > generic TList<T; U: Integer> = record > list: array[0..U-1] of T; > function capacity: integer; > end;
This is the syntax we’ve settled on. type generic TList<T, const U: integer> = record list: array[0..U-1] of T; function capacity: integer; end; Regards, Ryan Joseph _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal