Against deprecating aliases
Vladimir Panteleev
vladimir at thecybershadow.net
Fri Sep 30 00:44:39 PDT 2011
On Wed, 28 Sep 2011 22:43:13 +0300, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:
> Do the Phobos devs really expect people to use code like this:
>
> CopyFileW(std.utf.toUTFz!(const(wchar)*)(from),
> std.utf.toUTFz!(const(wchar)*)(to), false)
>
> instead of this?:
>
> CopyFileW(std.utf.toUTF16z(from), std.utf.toUTF16z(to), false)
>
How about this?
CopyFileW(std.utf.toUTFz!LPCWSTR(from), std.utf.toUTFz!LPCWSTR(to),
false)
If there isn't already, support for this should be added to std.conv.to.
--
Best regards,
Vladimir mailto:vladimir at thecybershadow.net
More information about the Digitalmars-d
mailing list