[Issue 11415] Assign range to array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 2 17:21:27 PDT 2013


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



--- Comment #9 from monarchdodra at gmail.com 2013-11-02 17:21:22 PDT ---
(In reply to comment #8)
> The point is that the syntax is listed in http://dlang.org/arrays.html.  This
> syntax should be extended to forward ranges since that is how one would
> *EXPECT* it to work.  Either that or the array vector copy syntax should be
> abandoned.

The array vector copy is more than just convenient syntax: It's a request for a
vectorized operation, which is built into naked arrays.

If this syntax did work, you'd *EXPECT* a vector operation too, but you'd be
getting a plain foreach copy, which would be just as wrong, but less explicitly
so.

-- 
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