typeid() broken for interfaces?

Walter Bright newshound2 at digitalmars.com
Mon Dec 3 03:39:48 PST 2012


On 12/3/2012 9:47 PM, Gor Gyolchanyan wrote:
> Currently typeid(typeid(Interface)) == typeid(ClassInfo).

I'm curious what you expect typeid(typeid(something)) to do. I would 
expect it to return the typeid of whatever object typeid returns. That 
has nothing to do with what 'something' is.



More information about the Digitalmars-d mailing list