toStringz for UTF-16

Andrej Mitrovic andrej.mitrovich at gmail.com
Sat Oct 13 06:45:15 PDT 2012


On 10/13/12, Jacob Carlborg <doob at me.com> wrote:
> On 2012-10-13 02:04, Jonathan M Davis wrote:
> Shouldn't we deprecate "toUTF16z" if "toUTFz" can handle all cases that
> "toUTF16z" does?

This was already proposed before, but it would break too much code.
Anyway there's nothing wrong in having an alias that makes typing
simpler, e.g. toUTF16z vs toUTF!(const(wchar)*).

Phobos has many helper auto functions which make instantiating
templates simpler, toUTF16z has that same kind of role.


More information about the Digitalmars-d mailing list