[fpc-pascal] Typinfo incompatibilities between FPC and Delphi

Marco van de Voort marcov at stack.nl
Sat May 31 15:45:39 CEST 2014


In our previous episode, Maciej Izak said:
> By Barry Kelly in comment :) :
> 
> http://stackoverflow.com/questions/3443097/what-is-the-identity-pointer-before-a-ttypeinfo-there-for
> 
> "all typeinfo fixups - pointers from one blob of typeinfo to another - are
> of type PPTypeInfo, not PTypeInfo, to handle the dynamic linking case. In
> the case of static linkage, there needs to be an intermediate pointer for
> the convention to work, and part of the typeinfo itself makes as much sense
> as any. That is to say, it's not there for the linker; it's there because
> of the convention, and the convention is there because of dynamic linking,
> which is done the way it is to maximize potential for page sharing."

Thanks, I added it to the wiki:

http://wiki.freepascal.org/packages#Details



More information about the fpc-pascal mailing list