[Issue 13209] Refused union initialization

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 27 14:02:38 PDT 2014


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

Dicebot <public at dicebot.lv> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |public at dicebot.lv

--- Comment #2 from Dicebot <public at dicebot.lv> ---
> This line is an anonymous struct declaration with 'static' attribute, so
x and y should become immutable static field.

Is this documented anywhere? Can't see it at http://dlang.org/struct.html and
this is different from named struct behavior.

--


More information about the Digitalmars-d-bugs mailing list