Recent improvements

Suliman evermind at live.ru
Wed Feb 19 05:07:38 PST 2014


Hm, I got next error on this code

import std.stdio;
import std.array;

void main()
{
immutable s = ["red", "blue"];
auto js = s.join;
}


D:\Project\2014\App1\main.d(7): Error: template std.array.join 
cannot deduce function from argument types 
!()(immutable(char[][])), candidates are:
C:\D\dmd2\windows\bin\..\..\src\phobos\std\array.d(1526):        
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)))
C:\D\dmd2\windows\bin\..\..\src\phobos\std\array.d(1573):        
std.array.join(RoR)(RoR ror) if (isInputRange!RoR && 
isInputRange!(ElementType!RoR))
[Finished in 0.3s]


More information about the Digitalmars-d mailing list