Is `void` the correct way to say "do not initialize this variable"?
ryuukk_
ryuukk.dev at gmail.com
Sun Oct 2 23:30:16 UTC 2022
I have tried to look at the documentation and various places on
the DMD source, but i couldn't find the answer
```D
MyStruct test = void;
```
Does this guarantee that the compiler will not initialize it?
Does it work with static arrays of struct too?
The generated code is different than ``MyStruct test;``
What exactly (by exactly i mean is the behavior documented
somewhere?) ``void`` does?
More information about the Digitalmars-d-learn
mailing list