<div dir="ltr">It should not be print? AIAIK std.utf.toUTF16 is not deprecated: <a href="http://dlang.org/phobos/std_utf.html#toUTF16">http://dlang.org/phobos/std_utf.html#toUTF16</a><div><br></div><div>OK this one is:<a href="https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2760">https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2760</a> (but this one is not in doc)</div><div><br></div><div>but this one should not be deprecated: <a href="https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2777">https://github.com/dlang/phobos/blob/v2.075.1/std/utf.d#L2777</a></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 16, 2017 at 3:02 PM, Steven Schveighoffer via Digitalmars-d-learn <span dir="ltr"><<a href="mailto:digitalmars-d-learn@puremagic.com" target="_blank">digitalmars-d-learn@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 8/16/17 1:09 AM, apz28 wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
void main()<br>
{<br>
     import std.utf : toUTF16; // Same problem with toUTF8<br>
<br>
     wstring s = toUTF16!string("abc");<br>
}<br>
<br>
Compilation output:<br>
/d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To be removed November 2017. Please use std.utf.encode instead.<br>
/d500/f513.d(3): Deprecation: function std.utf.toUTF16 is deprecated - To be removed November 2017. Please use std.utf.encode instead.<br>
<br>
</blockquote>
<br></div></div>
Help me out, what is the problem with the message?<br>
<br>
-Steve<br>
</blockquote></div><br></div>