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.

Reply via email to