http://d.puremagic.com/issues/show_bug.cgi?id=2836

           Summary: Navigate from ClassInfo to TypeInfo
           Product: D
           Version: 2.026
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: ben...@tionex.de


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


-- 

Reply via email to