[Issue 18105] New: std.conv.parse!wchar cannot take a string

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 19 18:39:36 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=18105

          Issue ID: 18105
           Summary: std.conv.parse!wchar cannot take a string
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: dechcaudron+dlang.issue.tracking at protonmail.com

Since any char fits into a wchar, and given that parse!dchar(string) works, it
seems logical that it also works for wchar. Doing so should also allow
to!wchar(string) to work as to!dchar(string) does.

Merely reporting an issue that has personally affected me and I've already
fixed in my Phobos fork. Will create PR.

--


More information about the Digitalmars-d-bugs mailing list