dlang.org icon indicating copy to clipboard operation
dlang.org copied to clipboard

Documented that padding holes must be zero-initialized

Open dlangBugzillaToGithub opened this issue 12 years ago • 1 comments

Denis Shelomovskii (@denis-sh) reported this on 2013-04-25T00:57:45Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=9988

CC List

Description

It should be documented that padding holes must be zero-initialized.

dlangBugzillaToGithub avatar Apr 25 '13 00:04 dlangBugzillaToGithub

monarchdodra commented on 2013-04-25T03:40:23Z

I'm not sure this is necessary, or even correct.

Objects simply need to be initialized before use via init. That's the spec...

For all I know, the compiler is free to fill padding holes with 0xDEADBEEF, and everything would still work.

dlangBugzillaToGithub avatar Apr 25 '13 03:04 dlangBugzillaToGithub