[fpc-pascal] Constants in generics
Sven Barth
pascaldragon at googlemail.com
Thu Jan 3 00:15:11 CET 2019
Am Mi., 2. Jan. 2019, 23:41 hat Alexander Shishkin via fpc-pascal <
fpc-pascal at lists.freepascal.org> geschrieben:
> 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;
>
That's already been taken care of by Ryan :)
Regards,
Sven
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190103/847bdca9/attachment.html>
More information about the fpc-pascal
mailing list