[Issue 17757] New: Wrongly reported deprecated message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Aug 16 09:52:26 PDT 2017


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

          Issue ID: 17757
           Summary: Wrongly reported deprecated message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: apz28 at hotmail.com

Discussion: https://forum.dlang.org/post/on1isk$2rpm$1@digitalmars.com

There are two toUTF16 (one template and one function), the function one is
deprecated but the template one is not. Same issue with toUTF8 ones

Test on dmd-2.075.1

void main()
{
     import std.utf : toUTF16; // Same problem with toUTF8
     wstring s = toUTF16!string("abc");
}

Compilation output:
/d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To
be removed November 2017. Please use std.utf.encode instead.
/d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To
be removed November 2017. Please use std.utf.encode instead.

--


More information about the Digitalmars-d-bugs mailing list