[Issue 12982] internal error when using array expression as an argument

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Jun 24 07:09:15 PDT 2014


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

bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc

--- Comment #1 from bearophile_hugs at eml.cc ---
D vector ops are designed to never allocate memory. An operation like 2.0*a[]
doesn't mutate the array 'a', so there's nowhere for the result to go. So this
is not a bug, and I think this issue should be closed as invalid.

--


More information about the Digitalmars-d-bugs mailing list