[fpc-pascal] Constants in generics
Ryan Joseph
ryan at thealchemistguild.com
Wed Jan 9 17:02:59 CET 2019
> On Jan 8, 2019, at 3:49 PM, Benito van der Zander <benito at benibela.de> wrote:
>
> that reminds me of https://bugs.freepascal.org/view.php?id=34232
In this case maybe generics should just not give range errors unless they’re specialized? This bug and the problem I have are only for unspecialized generics. That would be the easiest and laziest thing to do but it would mean this would compile:
type
generic TList<T> = record
list: array[0..0-1] of integer;
end;
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list