[fpc-devel] Implicit function specialization precedence

Sven Barth pascaldragon at googlemail.com
Sun May 9 09:30:10 CEST 2021


Ryan Joseph via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am Sa.,
8. Mai 2021, 22:33:

>
>
> > On May 8, 2021, at 12:04 PM, Sven Barth <pascaldragon at googlemail.com>
> wrote:
> >
> > You need to use ChangeOwner as well, but as I wrote you need to pay
> attention for which created symbol you do it at what time.
>
> Ok, maybe this is what I got wrong didn't use ChangeOwner. When you say
> "add to" what exactly do you mean? Please post a single line code snippet
> even. Thanks.
>

Essentially it will boil down to sym.ChangeOwner(pd.parast)

However you need to keep the Owner (which is different from what you change
with ChangeOwner) different as otherwise is_specialization of the procdef
will not work correctly.

Regards,
Sven

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


More information about the fpc-devel mailing list