typeid() broken for interfaces?

Maxim Fomin maxim at maxim-fomin.ru
Fri Nov 30 03:21:35 PST 2012


On Friday, 30 November 2012 at 11:04:10 UTC, Gor Gyolchanyan 
wrote:
> So the interfaces aren't supposed to hold a TypeInfo? That 
> doesn't sound
> right. That makes interfaces useless in a very large set of use 
> cases.
>

You can find information about interfaces and classes at 
http://dlang.org/abi.html (interfaces have a pointer to vtbl[] 
which entries have pointers to TypeInfo). You can also write 
enhancement request if you consider your proposal worth 
implementing (but I don't understand what exactly you want).




More information about the Digitalmars-d mailing list