split Error - no overload matches

forkit forkit at gmail.com
Mon Feb 14 11:14:39 UTC 2022

This code will not compile.

Error: no overload matches for `split`

However, if I uncomment the //import std.uni : isWhite;

then it will compile.

I don't understand. I thought 'import std;' would be sufficient 

//  ----

module test;

import std;

void main()
     //import std.uni : isWhite; // need to uncomment this for it 
to compile.
     writeln("Learning D is fun".split!isWhite);

// -------

More information about the Digitalmars-d-learn mailing list