On Tue, Jul 29, 2008 at 10:48 AM, Neil Vice <sardonicpresence@gmail.com> wrote:

This would not break any code and helps to make the calling code less casty.

Or, you know, just make all instances of interfaces that don't extend IUnknown implicitly castable to object.

Can not structs implement interfaces? Should they be implicitly castable to Object?

No, structs cannot implement interfaces, and it makes no sense to cast a struct to Object either implicitly or explicitly.

Structs in D are for representing value types and have no virtual methods or inheritance.

--bb