[fpc-devel] Implicit function specialization precedence

Sven Barth pascaldragon at googlemail.com
Sun May 16 11:31:49 CEST 2021


Am 15.05.2021 um 18:27 schrieb Ryan Joseph via fpc-devel:
>
>> On May 13, 2021, at 2:38 PM, Sven Barth <pascaldragon at googlemail.com> wrote:
>>
>> Ah, you need to use ChangeOwnerAndName then and simply pass in the same name you used for the constructor (cause otherwise it tries to use the name that is currently stored in the list).
> Looking at this again today and I have yet another question to confirm. I create one of the types using ctypesym.create but the others were just references from the system unit. We only want to change owner of the symbol I create, right? Not the system unit ones? If not changing owner maybe we need to add some ref count or something? just confirming to make sure.
You only need to change the owner of those you create using 
ctypesym.create. The others are preexisting and you must not touch them 
in any way.

Regards,
Sven


More information about the fpc-devel mailing list