Is there a way to avoid default initializing a struct field in D? The following doesn't seem to work:

struct Foo
{
    int[42] buffer = void;
    int bar;
}

I know I can do this:

Foo foo = void

But then all fields are uninitialized.

Reply via email to