Error: `std.uni.isUpper` conflicts with `std.ascii.isUpper`

oddp oddp at posteo.de
Tue Jul 14 21:34:25 UTC 2020


On 2020-07-14 22:37, Marcone via Digitalmars-d-learn wrote:
> import std: isUpper, writeln;
> 
> void main(){
>      writeln(isUpper('A'));
> }
> 
> Why I get this error? How can I use isUpper()?

Two more options:

either fully qualify the name:

import std;
void main(){
     writeln(std.uni.isUpper('A'));
}

or import locally:

import std;
void main(){
     import std.uni;
     writeln(isUpper('A'));
}


More information about the Digitalmars-d-learn mailing list