interface and class inheritance

Chris Nicholson-Sauls ibisbasenji at gmail.com
Sun Nov 17 04:25:12 PST 2013


I had thought the pattern

     alias B.funcA funcA;

was supposed to solve things like this, but it does not work.  
Any reason it couldn't be made to?  Or, for that matter, why 
inherited members are not considered by interfaces in the first 
place?

In related news, if you simply leave A out of C's declaration, 
then do something like:

     A a = cast(A) c;
     a.funcA();

you will get a segfault.  Hooray.


More information about the Digitalmars-d-learn mailing list