interface reference not compatible to Object?

Frank Benoit (keinfarbton) benoit at tionex.removethispart.de
Sat Oct 21 04:25:09 PDT 2006


>> Is this the intended behaviour? If *every* object in D is a Object, then
>> every interface reference refers to an Object also. This said, the above
>> should compile?

And as already said in #d : I wonder why this even compiles. Why is C
not enforced to "reimplement" the methods from IObject?

Wouldn't it be consistent if the compiler implicitly inherit all
interfaces without a super-interface from this IObject?




More information about the Digitalmars-d mailing list