OpEquals and Interfaces

Don nospam at nospam.com
Thu Apr 15 01:01:16 PDT 2010


Kagamin wrote:
> Don Wrote:
> 
>> I think that's extremely unlikely, since 
>> MSVC defines __interface to be a COM interface.
> 
> It defines interface to be a C++ abstract class.

Yeah, OK, __interface is slightly broader, it's a superset of COM 
interfaces.
But, all COM interfaces are C++ abstract classes. So, if we required 
extern(C++) in order to make it a COM interface, we'd be fine.
Then we'd have the rule: all interfaces are derived from Object, unless 
they are extern(C++).



More information about the Digitalmars-d mailing list