Michael Van Canneyt wrote:

Few questions now:
a) Why TypeInfo(TObject) <> TObject.ClassInfo?
b) Why TypeInfo(TPersistent) = TPersistent.ClassInfo?

Because TPersistent is compiled in $M+ ?

Yes, that's why I gived that TPersistent example here. I can't figure our how TypeInfo(TObject) works if TObject has no RTTI and since it works then why TObject.ClassInfo = nil.

Best regards,
Paul Ishenin.

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

Reply via email to