[Issue 11415] Assign range to array
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 2 03:19:19 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=11415
--- Comment #6 from yazan.dabain at gmail.com 2013-11-02 03:18:54 PDT ---
@monarchdodra, that's true, however even this usage of copy is wrong as d
should change length.
Printing d after the copy produces: [4, 5, 6, 7, 5, 6, 7]
where it is meant to be [4, 5, 6, 7]
So you'll either have to go with what daniel350 had in his first post, or with
the allocating array call.
--
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