initialising inner struct

Manfred Nowak svv1999 at hotmail.com
Sat May 12 22:43:15 PDT 2007


David Ferenczi wrote

> Could someone help me?

struct A
{
        int a;
        struct B
        {
                int b;
        }
       	B b; // needs a declaration
}

A dataA = { a:0, { b:0} };

-manfred


More information about the Digitalmars-d-learn mailing list