On Tuesday, 7 April 2015 at 02:24:00 UTC, Dennis Ritchie wrote:
Although, perhaps, everything is fine. I just thought that creates takeNone not string type string, and the string array of type string[].Is it OK?
import std.stdio : writeln;
void main() {
string s;
s ~= 5;
writeln(s); // prints ♣
}
So I mixed up with this case. Everything is OK.
import std.range : takeNone;
void main() {
auto s = takeNone(["test"]);
// s ~= 5; // Error: cannot append type int to type string[]
}
