Identity of interfaces (or not)

BCS ao at pathlink.com
Wed Dec 3 09:54:28 PST 2008


Reply to Jason,

> BCS wrote:
> 
>> why not make
>> Ia == Ib
>> into
>> cast(Object)Ia == cast(Object)Ib
>> ?
> Interfaces are not always castable to Object.  At a minimum, it fails
> for COM and extern(C++)
> 

Check my reply to Robert. I think it works if you just do it and ignore some 
types of errors. It's under the hood anyway.





More information about the Digitalmars-d mailing list