Thread overview
[Issue 1317] Document suggested means of overlapping array copy
Mar 19, 2014
Infiltrator
Mar 19, 2014
Infiltrator
March 19, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1317


Infiltrator <lt.infiltrator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lt.infiltrator@gmail.com


--- Comment #1 from Infiltrator <lt.infiltrator@gmail.com> 2014-03-18 21:11:49 PDT ---
https://github.com/D-Programming-Language/dlang.org/pull/527

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 19, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1317


bearophile_hugs@eml.cc changed:

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


--- Comment #2 from bearophile_hugs@eml.cc 2014-03-19 03:45:56 PDT ---
(In reply to comment #1)
> https://github.com/D-Programming-Language/dlang.org/pull/527

The suggested method with dup+slices doesn't look very good. Don't we have something better? For PODs even core.stdc.string.memmove sounds better. Perhaps a new Phobos function is needed? Or perhaps std.algorithm.copy is enough?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 19, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1317



--- Comment #3 from Infiltrator <lt.infiltrator@gmail.com> 2014-03-19 04:05:31 PDT ---
Doesn't look good style-wise or performance-wise?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 19, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=1317



--- Comment #4 from bearophile_hugs@eml.cc 2014-03-19 04:16:24 PDT ---
(In reply to comment #3)
> Doesn't look good style-wise or performance-wise?

I have not done benchmarks, but perhaps there are faster solutions.

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