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


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #3 from [email protected] 2012-10-29 15:38:29 PDT ---
This too fails:

void main() {
    char[5][2] cs;
    cs[].join(",");
}


This is a work-around, but I agree it's too much complex and it produces too
much garbage for the collector (all those dup):

import std.stdio, std.array, std.algorithm;
void main() {
    char[5][2] cs = 'x';
    char[] j = map!(r => r.dup)(cs[]).join(",");
    writeln(j);
}


So I agree join() should support fixed-size arrays of arrays.

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

Reply via email to