06.11.2018 10:13, Ryan Joseph пишет:
program generic_constants;
type
generic TList<T, U> = record
list: array[0..U-1] of T;
function capacity: integer;
end;
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;
--
AVS
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
