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

Ben Jones fake at fake.fake
Tue Jul 14 20:44:31 UTC 2020


On Tuesday, 14 July 2020 at 20:37:53 UTC, Marcone wrote:
> import std: isUpper, writeln;
>
> void main(){
> 	writeln(isUpper('A'));
> }
>
> Why I get this error? How can I use isUpper()?

import std.uni: isUpper; // or import std.ascii : isUpper
import std.stdio : writeln;

import std pulls in all the modules in phobos and uni and ascii 
both contain functions named isUpper.  There's probably many ways 
to fix the error, but I usually import the modules I want 
explicitly.


More information about the Digitalmars-d-learn mailing list