initialising inner struct

David Ferenczi raggae at ferenczi.net
Sat May 12 23:19:28 PDT 2007


Manfred Nowak wrote:

> 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

Hey, it was quick!
Many thanks!






More information about the Digitalmars-d-learn mailing list