Bart via fpc-devel <fpc-devel@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

>
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to