[fpc-pascal] Typinfo incompatibilities between FPC and Delphi

Sven Barth pascaldragon at googlemail.com
Mon Jun 9 11:39:58 CEST 2014


On 08.06.2014 17:03, Graeme Geldenhuys wrote:
>>> I've also introduced an enhanced GetPropInfo() with a signature as
>> follows:
>>>
>>> function tiGetPropInfo(AClass: TClass; PropPath: string; PInstance:
>>> Pointer): PPropInfo;
>>
>> Might also profit from a declaration as "inline" :)
>
> This one might not work as inline, as it is much more involved. Also
> note the PropPath property. tiOPF can handling calls like:
>
>    tiGetPropInfo(MyObject, 'Contact.Address.PostCode', ...)
>
> It will iterate through the MyObject.Contact.Address.PostCode
> properties, obviously doing NULL checks along the way. Hence the name
> "PropPath" (property path).

Ah ok. I thought it was also a more simpler wrapper call. Then not :P

Regards,
Sven



More information about the fpc-pascal mailing list