Assigning Interface to Object

Trass3r un at known.com
Thu Jan 20 04:16:56 PST 2011


> Object is only the base class for all D classes. Interfaces may also
> represent COM objects or C++ classes, which are not subclasses of
Object.

Can't the compiler check if it is a normal D interface and then allow
(implicit) casts to Object?


More information about the Digitalmars-d-learn mailing list