[Issue 21136] N sized array takes kN bytes in executable file
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 25 11:21:21 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=21136
RazvanN <razvan.nitu1305 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |razvan.nitu1305 at gmail.com
Resolution|--- |INVALID
--- Comment #7 from RazvanN <razvan.nitu1305 at gmail.com> ---
Since D initializes all variables by default, it needs to store the
initializer. Yes, void initialization is used to not store the initializer.
This is all according to the spec, there is no bug here.
--
More information about the Digitalmars-d-bugs
mailing list