[Issue 11817] Structs with void initialized fields get initialized anyway

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 6 13:44:37 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=11817

Martin Nowak <code at dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code at dawg.eu

--- Comment #2 from Martin Nowak <code at dawg.eu> ---
The compiler could skip those fields during initialization, but adding
typeid(T).init arrays with gaps would be more difficult (require many changes).
I'd say representing those gaps as 0 is the best trade-off for now, as it still
allows to put the initializer into .bss.

--


More information about the Digitalmars-d-bugs mailing list