[Issue 1317] New: Document suggested means of overlapping array copy

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 5 09:43:32 PDT 2007


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

           Summary: Document suggested means of overlapping array copy
           Product: D
           Version: unspecified
          Platform: PC
               URL: http://www.digitalmars.com/d/arrays.html
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: jlquinn at us.ibm.com


The docs on arrays has a section on copying arrays using slice notation.  It
rules out overlapping copies.  Since you can't do this, there should be a
suggested method of doing that - a pointer to memcpy(), using concatenation,
open-coding the loop, a Phobos library call, etc.

Related to #473.


-- 



More information about the Digitalmars-d-bugs mailing list