[fpc-devel] {$M+} and forward declarations do not work

Graeme Geldenhuys graemeg at opensoft.homeip.net
Tue Dec 20 10:06:57 CET 2005


Peter Vreman wrote:
>>Here is the command line version of my app.
>>
>>   lCount  := GetPropList(O.ClassInfo, lPropFilter, nil, false);
> 
> 
> Here is the small difference. I used TypeInfo() that returns a direct
> reference to the RTTI. Your code uses ClassInfo that will load the pointer
> from the Class structure. The pointer in this class structure is nil.

So is this a bug in GetPropList? Why does it work when I move the $M 
away from the forward declaration to the class declaration?

Regards,
   - Graeme -





More information about the fpc-devel mailing list