[Issue 19917] unions should require that all members are `= void` initialised

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 29 07:46:30 UTC 2019


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

--- Comment #2 from Manu <turkeyman at gmail.com> ---
Okay... well take this as the enhancement request that it is ;)
That existing rule you describe is unintuitive and terrible. Users should
specify `= void` on every member except one of their choosing. You can't
possibly go wrong then, and there's also zero magic rules in the compiler that
need to be explained under that arrangement.

--


More information about the Digitalmars-d-bugs mailing list