test:

void main()
{
    import std.array;
    const lines = ["abc", "def"];
    auto res = std.array.join(lines, "\n");
}

DMD: compiles and work
GCD: compile error:

test.d:6: error: template std.array.join cannot deduce function from argument types !()(const(immutable(char)[][]), string), candidates are: /home/juanjux/descargas/x86_64-gdcproject-linux-gnu/include/d/4.9.0/std/array.d:1526: note: std.array.join(RoR, R)(RoR ror, R sep) if (isInputRange!RoR && isInputRange!(ElementType!RoR) && isInputRange!R && is(Unqual!(ElementType!(ElementType!RoR)) == Unqual!(ElementType!R))) /home/juanjux/descargas/x86_64-gdcproject-linux-gnu/include/d/4.9.0/std/array.d:1573: note: std.array.join(RoR)(RoR ror) if (isInputRange!RoR && isInputRange!(ElementType!RoR))

Reply via email to