On 31.05.2014 15:45, Marco van de Voort wrote:
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
I have the feeling that the introduction of dynamic packages in FPC
*will* require us to change our current RTTI from PTypeInfo to
PPTypeInfo... :/
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal