Against deprecating aliases

Steven Schveighoffer schveiguy at yahoo.com
Thu Sep 29 04:27:41 PDT 2011


On Thu, 29 Sep 2011 05:48:12 -0400, Gor Gyolchanyan  
<gor.f.gyolchanyan at gmail.com> wrote:

> Why wont to!string(), to!wstring() and to!dstring() to the trick?
> This is essentially toUTF8, toUTF16 and toUTF32.
> And the toStringz can be templated to take any of string, wstring and  
> dstring.
> I don't see any problem here.
> Just drop the whole thing.

toUTFz and friends do *not* convert to strings, wstrings, and dstrings,  
they convert to C-style null-terminated strings (stringz)

FWIW, I agree we should keep the any existing functions, and just alias  
them to the template.  It doesn't hurt to have them if they are not  
reimplementations.

-Steve


More information about the Digitalmars-d mailing list