How to fix wrong deprecation message - dmd-2.075.1
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Aug 16 06:12:54 PDT 2017
It should not be print? AIAIK std.utf.toUTF16 is not deprecated:
http://dlang.org/phobos/std_utf.html#toUTF16
OK this one is:https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2760
(but this one is not in doc)
but this one should not be deprecated:
https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2777
On Wed, Aug 16, 2017 at 3:02 PM, Steven Schveighoffer via
Digitalmars-d-learn <digitalmars-d-learn at puremagic.com> wrote:
> On 8/16/17 1:09 AM, apz28 wrote:
>
>> 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.
>>
>>
> Help me out, what is the problem with the message?
>
> -Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170816/3bb3d050/attachment.html>
More information about the Digitalmars-d-learn
mailing list