[fpc-pascal] Constants in generics

Sven Barth pascaldragon at googlemail.com
Tue Nov 27 17:07:45 CET 2018

Am Di., 27. Nov. 2018, 15:08 hat Ryan Joseph <ryan at thealchemistguild.com>

> > You did read the part about the generic and the specialization being
> located in two different units? ๐Ÿ˜‰
> Oops. This still works so I guess itโ€™s ok.
> program gc_ppu;
> uses
>         gc_types_unit;
> var
>         a: specialize TList<Integer,10>;
> begin
>         a.dothis('hello');
> end.

Does it also work correctly if you change the constant and then recompile?
The same if the specialization is inside another unit used by the program?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181127/edb8f120/attachment.html>

More information about the fpc-pascal mailing list