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 clas
Bill Baxter Wrote:
> On Tue, Dec 2, 2008 at 4:12 AM, llee <[EMAIL PROTECTED]> wrote:
> > I defined a function that uses a tuple to define it's function parameters
> > like this:
> >
> > class Example (Signature ...)
> > {
> > v
I defined a function that uses a tuple to define it's function parameters like
this:
class Example (Signature ...)
{
void f (Signature) { ... }
}
I want to store the input parameters in an array, where the are is a data
member of the enclosing class.
class Example
Is it possible to inherit from a nested class from outside of the enclosing
class? For example:
class A
{
class B { int x; }
}
class C : B
{
int get () { return x; }
}