[Issue 7484] std.algorithm.copy overlapping array copy
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 11 15:21:19 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7484
--- Comment #3 from David Simcha <dsimcha at yahoo.com> 2012-02-11 15:21:17 PST ---
(In reply to comment #2)
> (In reply to comment #1)
> > I'll put in an extra test for overlap and
> > fallback to naive copying if the arrays do overlap.
>
> Is using memmove() good there is overlap?
I don't think it would have the same semantics in all cases. memmove()
requires semantics identical to if an intermediate buffer were used. Imagine
copying a[4..9] to a[5..10].
--
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