[fpc-devel] Error: Global Generic template references static symtable

Sven Barth pascaldragon at googlemail.com
Fri Jan 8 20:59:48 CET 2021


Bart via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Fr., 8. Jan.
2021, 20:07:

> It seems I cannot use a stand-alone function that is declared in the
> implementation of the unit?
>

Correct.

Why is that?
>

Generics are a stream of tokens that is reparsed when specialized.
Functions declared in the implementation section are simply not available
then thus its forbidden right away. This is Delphi compatible.

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20210108/2bddc802/attachment.htm>


More information about the fpc-devel mailing list