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

Simen Kjaeraas <simen.kja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |simen.kja...@gmail.com

--- Comment #1 from Simen Kjaeraas <simen.kja...@gmail.com> ---
Definitely not excised - the fact that union member destructors should not be
called by the compiler is not immediately obvious, and the user should be
warned of this fact.

Also, the text should probably advocate destroy(u.field) over calling __xdtor
directly. Otherwise, your text looks good.

One related problem is issue 19122, or the fact that destructors are indeed
being called automatically for union members. That shouldn't affect this issue,
but it means that your text isn't correct until 19122 is fixed.

--

Reply via email to