[Issue 2275] New: std.utf.toUTF16z() should return const(wchar)*

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 9 09:52:24 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=2275

           Summary: std.utf.toUTF16z() should return const(wchar)*
           Product: D
           Version: 2.014
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Severity: trivial
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: 2korden at gmail.com


Currently it returns const(wchar*) which renders the pointer to be
unnassignable anymore:

auto p = toUTF16z("test");
p = null; // variable p cannot modify const

The same goes to toMBSz, which returns const(char*) instead of const(char)*


-- 



More information about the Digitalmars-d-bugs mailing list