[fpc-devel] RTTI is always enabled??

Daniël Mantione daniel.mantione at freepascal.org
Thu Dec 10 11:29:35 CET 2009

Op Thu, 10 Dec 2009, schreef Graeme Geldenhuys:

> Paul Ishenin wrote:
>> This is delphi 2010 compatible behavior. Only info about published
>> methods is not written for classes with {$M-}.
> 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.

Published properties are far from the only information stored in RTTI, and 
therefore not the only reason why RTTI is generated. Automated types like 
widestring need for example RTTI to function.

I'd say check if the RTTI contains the data you need.


More information about the fpc-devel mailing list