D should have a root interface
Sean Kelly
sean at invisibleduck.org
Mon Jul 28 21:13:26 PDT 2008
== Quote from Jarrett Billingsley (kb3ctd2 at yahoo.com)'s article
> "Neil Vice" <sardonicpresence at gmail.com> wrote in message
> news:g6lstt$2qi4$1 at digitalmars.com...
> > Can not structs implement interfaces? Should they be implicitly castable
> > to Object?
> It's not possible, but I swear I remember W mentioning this sometime. I
> can't seem to find when he said it though. It might be something that's
> still in development for D2, but I also remember him saying something about
> structs that implement interfaces wouldn't be able to be cast to those
> interface references, so I'm not sure what purpose it'd serve.
It was a really hacky way to implement contracts for D2. I don't
think we'll ever see this feature.
Sean
More information about the Digitalmars-d
mailing list