[fpc-devel] Error: Global Generic template references static symtable
Bart
bartjunk64 at gmail.com
Fri Jan 8 22:46:47 CET 2021
On Fri, Jan 8, 2021 at 9:00 PM Sven Barth via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:
>> It seems I cannot use a stand-alone function that is declared in the
>> implementation of the unit?
> 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.
Thanks for explaining this.
The errormessage is probably technically correct, but for me it might
be a little more informative (so that I can tell what I did wrong).
--
Bart
More information about the fpc-devel
mailing list