[fpc-pascal] Extraneous generic parameters

Sven Barth pascaldragon at googlemail.com
Mon Mar 15 23:40:58 CET 2021


Ryan Joseph via fpc-pascal <fpc-pascal at lists.freepascal.org> schrieb am
Mo., 15. März 2021, 20:45:

>
>
> > On Mar 15, 2021, at 12:42 AM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> >
> > The TArray<T> generic type is part of the ObjPas unit, so the compiler
> simply picks that instead of that of your program. ;)
>
> Sneaky but that explains the issue.
>

It's part of the generic type overloading inherited from Delphi. *shrugs*


> Btw since we're on the topic of arrays. Are short strings and static
> arrays not able to be generics? I tried that and got parser errors.
>

That is correct. File, set or pointers are not supported either for
example.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20210315/0dd765ba/attachment.htm>


More information about the fpc-pascal mailing list