[Issue 816] New: .dup for associative arrays

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jan 7 17:08:49 PST 2007


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

           Summary: .dup for associative arrays
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: thecybershadow at gmail.com


Since associative arrays are reference types, the language currently doesn't
provide a straight-forward way to duplicate an associative array. As a small
enhancement towards general language consistency, I would like to suggest a
.dup property, like for dynamic arrays, which returns a copy of the associative
array.


-- 



More information about the Digitalmars-d-bugs mailing list