Interface abstraction

Adam D. Ruppe destructionator at gmail.com
Tue Dec 31 16:31:57 PST 2013


On Wednesday, 1 January 2014 at 00:31:03 UTC, Frustrated wrote:
> auto a = new B; // should return cast(A)(new B);

A a = new B;

> case where a being of type B will hurt since it is always 
> implicitly castable to type A.

Right, it'll always be usable anyway.


More information about the Digitalmars-d-learn mailing list