Thread overview | |||||
---|---|---|---|---|---|
|
December 09, 2008 Nested Base classes | ||||
---|---|---|---|---|
| ||||
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? |
December 09, 2008 Re: Nested Base classes | ||||
---|---|---|---|---|
| ||||
Posted in reply to llee | On Tue, Dec 9, 2008 at 2:08 PM, llee <larry@workingwondersus.com> wrote:
> 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?
>
It's not possible, and I doubt it ever will be.
|
December 09, 2008 Re: Nested Base classes | ||||
---|---|---|---|---|
| ||||
Posted in reply to llee | Reply to llee,
> 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?
>
That's on the feature request list somewhere.
|
Copyright © 1999-2021 by the D Language Foundation