interfaces and such

David Nadlinger see at klickverbot.at
Fri Jul 27 09:48:59 PDT 2012


On Friday, 27 July 2012 at 14:56:18 UTC, Gor Gyolchanyan wrote:
> I have a small question: why aren't interfaces implicitly 
> convertible to
> Object?

Not all interfaces »originate« from D objects, they can also be 
COM interfaces. Using (cast(Object)foo) should work if foo is 
really an Object.

David


More information about the Digitalmars-d mailing list