[Issue 11331] Inefficient initialization of struct with members = void

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Oct 10 13:54:00 PDT 2016


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

Martin Nowak <code at dawg.eu> changed:

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

--- Comment #6 from Martin Nowak <code at dawg.eu> ---
It's almost somewhat of a language fix, b/c they are silently ignored,
everybody expects them to work (seen that discussion/mistake several times
already, recent occurence
https://forum.dlang.org/post/ntfrgh$1l2n$1@digitalmars.com).

Until we use that information for more efficient initialization we should
probably warn about that = void on a struct field has no effect.

--


More information about the Digitalmars-d-bugs mailing list