Navigate from ClassInfo to TypeInfo

Frank Benoit keinfarbton at googlemail.com
Wed Apr 15 03:00:33 PDT 2009


Frank Benoit schrieb:
> 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)?

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



More information about the Digitalmars-d mailing list