[Issue 10562] Cannot initialize arrays by an element value when the elements are fixed-length arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jul 7 00:10:47 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10562


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maxim at maxim-fomin.ru


--- Comment #1 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-07-07 00:10:45 PDT ---
>From the spec: "If a slice operator appears as the lvalue of an assignment
expression, and the type of the rvalue is the same as the element type of the
lvalue, then the lvalue's array contents are set to the rvalue. "

Assuming that single value initialization is a semantic equivalent of slice
expression, the code should work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list