[fpc-pascal] Delphi RTTI vs Free Pascal RTTI

Michael Van Canneyt michael at freepascal.org
Fri Mar 24 19:55:13 CET 2017

On Fri, 24 Mar 2017, African Wild Dog wrote:

> Hello,
> I need to write a code compatilble with both free pascal and delphi using
> the old style RTTI.
> What are the diferences between delphi's and free pascal's approach/types?
> I took a look at delphi's and fpc's TypInfo unit and it looks like the
> types/functions are compatible.

They are. There is one dereference on Delphi which is not present in fpc,
although in fpc trunk, this additional dereference is there. If you use the
standard functions you should not notice this.


More information about the fpc-pascal mailing list