[fpc-pascal] stuck with untyped pointer

Alberto Narduzzi albertonarduzzi at yahoo.com
Sat May 29 00:09:50 CEST 2010


> Struct is declared as "class" so it inherits from TObject if not other
> class is especified.

is that true? I don't mean not to trust you, but is the compiler 
assuming that, or is it a FPC rule? IMO a class is a class, and doesn't 
inherit from anything else. Unless specified. BTW, From who does TObject 
inherit then?
Just asking, I never declare anything as a pure class, or if I do I 
don't care if it descends from TObject or not, actually...

> If Struct was declared as "Object" that would be another story.

no doubt on this.

Cheers, A.

More information about the fpc-pascal mailing list