split Error - no overload matches

forkit forkit at gmail.com
Mon Feb 14 22:18:09 UTC 2022


On Monday, 14 February 2022 at 11:37:38 UTC, ag0aep6g wrote:
> On 14.02.22 12:14, forkit wrote:
>> However, if I uncomment the //import std.uni : isWhite;
>> 
>> then it will compile.
>> 
>> I don't understand. I thought 'import std;' would be 
>> sufficient here??
>
> "isWhite" is ambiguous. There's std.uni.isWhite and 
> std.ascii.isWhite. `import std;` can't know which one you want.

thanks.

a little more help from the compiler itself would also have been 
appreciated ;-)

e.g:

Error: The call to isWhite is ambiguous between the following 
methods: 'std.uni.isWhite' and 'std.ascii.isWhite'


More information about the Digitalmars-d-learn mailing list