On Monday, 3 October 2022 at 14:37:35 UTC, kdevel wrote:
On Sunday, 2 October 2022 at 23:37:26 UTC, ryuukk_ wrote:
I got the answer thanks to IRC chat:
https://dlang.org/spec/declaration.html#void_init
Quote:
Implementation Defined: If a void initialized variable's
value is used
before it is set, its value is implementation defined.
Shouldn't this read
Unspecified Value: If a void initialized variable's value is
used
before it is set, its value is unspecified.
Yes, it should. Many of the contributors to the D spec are not
very well versed in the precise details of these terms, so
mistakes like this occasionally slip through.