Rename std.string.toStringz?

Timon Gehr timon.gehr at gmx.ch
Sat Jun 18 07:36:16 PDT 2011


Andrei Alexandrescu wrote:
> On 6/18/11 4:59 AM, Jonathan M Davis wrote:
>> I'll look at renaming toUTF16z to toWStringz to match toStringz (as was
>> suggested by a couple of people in this thread)
>
> That should be a template toUTFz that takes either char*, wchar*, or dchar*.
>
> Andrei

Would you suggest to keep an alias toUTFZ!(char*) toStringz; for backwards
compatibility with basically all code that has to interface with C, or to drop
toStringz completely?


Timon


More information about the Digitalmars-d mailing list