Nested Base classes

llee larry at workingwondersus.com
Tue Dec 9 11:08:36 PST 2008


I'm trying derive a class from a nested base class. The programs' structure is as follows:

class A
{
     class B
     {
     }
}

class C : A
{
     class D : B
     {
     }
}

I'm using version 2.014 of the dmd compiler, and the above fails. The compiler error reports that B is nested in class A and not C. Does anyone know a work around?


More information about the Digitalmars-d-learn mailing list