[Issue 8910] New: Static arrays and dynamic arrays and std.array.join

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 29 15:18:14 PDT 2012


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

           Summary: Static arrays and dynamic arrays and std.array.join
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: daniel350 at bigpond.com


--- Comment #0 from Daniel Cousens <daniel350 at bigpond.com> 2012-10-29 15:18:13 PDT ---
I imagine this bug is a mere matter of adjusting some templates, but it is a
very common occurence anyway.

The simplest case:
char[5][2] cs;
cs.join(","); // fails

The same case, rewritten to use heap arrays.
char[][] cs = new char[][2];
cs[0] = new char[5];
cs[1] = new char[5];

cs.join(","); // works

-- 
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