Templated Interfaces?

Jarrett Billingsley kb3ctd2 at yahoo.com
Sun Aug 24 15:12:53 PDT 2008


"Jason House" <jason.james.house at gmail.com> wrote in message 
news:g8sioq$6ul$1 at digitalmars.com...

> whoa, that's a bad idea!
>
> You can not implicitly cast back and forth between interfaces and classes
> that implement those interfaces; the underlying pointer is not the same.
> There was a big discussion about this fairly recently on one of the D
> mailing lists...

No, what he's doing is OK.  The trouble only occurs when you try to cast 
*the array* up or down the inheritance hierarchy. 




More information about the Digitalmars-d-learn mailing list