[fpc-devel] RTTI question

Sergei Gorelkin sergei_gorelkin at mail.ru
Sat Jul 31 02:06:34 CEST 2010


I have discovered that the pointer returned by typeinfo() builtin in FPC is very different from one 
returned in Delphi. What Delphi returns points to rough equivalent of FPC's INIT$_<typename> 
structure, so one may examine the structure to figure out the 'managed' fields. FPC, however, 
returns pointer to RTTI$_<typename> structure, which - for records and objects - doesn't seem to 
contain anything useful except the type name. At the same time there seems to be no way to access 
INIT$_<typename> information from code.
Is this a subject for bugreport?


More information about the fpc-devel mailing list