[fpc-devel] RTTI is always enabled??

Paul Ishenin ip at kmiac.ru
Thu Dec 10 11:38:40 CET 2009


10.12.2009 17:25, Graeme Geldenhuys wrote:

> So what is the correct way of asking if a class as RTTI (published
> properties) available?  Because currently we have stacks of unit tests that
> fail in tiOPF due to this change - give always true when asking if publish
> properties (RTTI) is available.

If you want to get info about published properties then use the 
PropCount field of the class TTypeData record. If class has no RTTI it 
has PropCount = 0 I suppose. Although classes with RTTI but without 
published properties also have PropCount = 0 :)

Anyway, to give you a better answer I need more info about the goals of 
this info requesting.

Best regards,
Paul Ishenin.




More information about the fpc-devel mailing list