Identity of interfaces (or not)
BCS
ao at pathlink.com
Wed Dec 3 09:52:46 PST 2008
Reply to Robert,
> BCS wrote:
>
>> why not make
>> Ia == Ib
>> into
>> cast(Object)Ia == cast(Object)Ib
>> ?
> I like, but will this work for COM?
>
All that would be required is to define casting a non D Com object to Object
as something rational and consistent (but only in the special cases of this
test). I think this should be easy to do as all it would require, as a result
of both how COM and D interfaces work, is using an unchecked cast to object.
More information about the Digitalmars-d
mailing list