Are void arrays usable ?

badlink via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 20 03:09:25 PDT 2014


Hello,
I just discovered this strange behavior:

struct A {
   void[10] x; // OK, compiles fine
}
class B {
   void[10] x; // Error: void does not have a default initializer
               // ! note, the message come without any line 
indication !
}

Does this mean that void arrays are a thing or it is a bug ?


More information about the Digitalmars-d-learn mailing list