typeid() broken for interfaces?

Walter Bright newshound2 at digitalmars.com
Sun Dec 2 17:10:36 PST 2012


On 12/3/2012 6:26 AM, Gor Gyolchanyan wrote:
> What's the logic in this behavior?

Think of it this way. An int can be implicitly converted to a long, but 
they have different typeid's because they are different bits.



More information about the Digitalmars-d mailing list