Are void arrays usable ?
bearophile via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 20 03:18:56 PDT 2014
badlink:
> Does this mean that void arrays are a thing or it is a bug ?
You can compile that with:
class Foo {
void[10] x = void;
}
But this code shows a dmd bug (lack of line number):
class Foo {
void[10] x;
}
void main() {}
Error: void does not have a default initializer
Take a look in bugzilla, if it's not already present file it.
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list