www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Wide characters support in D

Yes, I know function overloading takes care of it. But my whole point was
totally different. 'tchar' has nothing to do with overloading, and the
rationale is totally different - provide a type depending on the target
platform preferences.

Ruslan.

--- On Tue, 6/8/10, Walter Bright <newshound1 digitalmars.com> wrote:

 From: Walter Bright <newshound1 digitalmars.com>
 Subject: Re: Wide characters support in D
 To: digitalmars-d puremagic.com
 Date: Tuesday, June 8, 2010, 8:36 PM
 Ruslan Nikolaev wrote:
 No. From the very beginning I said "it would also be

 builtin function for conversion to dchar". That means

 have function that converts from tchar (regardless of

 The reason was always clear - you normally don't need

 but for some character analysis you might need them.

http://www.digitalmars.com/d/2.0/phobos/std_utf.html Function overloading takes care of selecting the right version.

Jun 08 2010