Navigate from ClassInfo to TypeInfo

Frank Benoit keinfarbton at googlemail.com
Tue Apr 14 11:16:44 PDT 2009


I need to retrieve an instance of TypeInfo from an object instance at
runtime.

TypeInfo info = typeid(obj) // does not work, only compile time

TypeInfo info = obj.classinfo.????; // how to navigate to TypeInfo?

Is that possible?
If not, why? And can it be added (D1)?



More information about the Digitalmars-d mailing list