Summary: Navigate from ClassInfo to TypeInfo
           Product: D
           Version: 2.026
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

To retrieve an instance of TypeInfo from an object instance at

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:


Reply via email to