Hi,

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.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to