=void in struct definition

Shachar Shemesh shachar at weka.io
Mon Apr 9 11:06:50 UTC 2018


struct S {
   int a;
   int[5000] arr = void;
}

void func() {
   S s;
}

During the s initialization, the entire "S" area is initialized, 
including the member arr which we asked to be = void.

Is this a bug?

Shachar


More information about the Digitalmars-d mailing list