To retrieve an instance of TypeInfo from an object instance at
runtime.
Object obj = getSomething(); // returns a derived instance
TypeInfo info = typeid(obj) // does not work, only compile time
TypeInfo info = obj.classinfo.????; // how to navigate to TypeInfo?
ClassInfo shall have an additional field, that make that navigation possible.
A NG discussion was here: http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D&article_id=88011
Comment #1 by dfj1esp02 — 2009-04-15T04:17:44Z
I think, ClassInfo can just inherit from TypeInfo.
Comment #2 by tomas — 2009-04-15T04:54:41Z
Then TypeInfo_Class and TypeInfo_Interface needs to be merged as well.