[Issue 2836] New: Navigate from ClassInfo to TypeInfo

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 14 22:16:09 PDT 2009


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: bugzilla at digitalmars.com
        ReportedBy: benoit at 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


-- 



More information about the Digitalmars-d-bugs mailing list