digitalmars.D.bugs - [Issue 18116] New: to!wchar([string, dstring]), and
- d-bugmail puremagic.com (21/21) Dec 23 2017 https://issues.dlang.org/show_bug.cgi?id=18116
https://issues.dlang.org/show_bug.cgi?id=18116 Issue ID: 18116 Summary: to!wchar([string, dstring]), and to!char([wstring, dstring]) don't compile Product: D Version: D2 Hardware: x86_64 OS: All Status: NEW Severity: enhancement Priority: P1 Component: phobos Assignee: nobody puremagic.com Reporter: dechcaudron+dlang.issue.tracking protonmail.com The following should all work: assert(toImpl!wchar("a") == 'a'); assert(toImpl!char("a"d) == 'a'); assert(toImpl!char("a"w) == 'a'); assert(toImpl!wchar("a"d) == 'a'); I've already coded a solution. Will provide PR. --
Dec 23 2017