Wide characters support in D

Ruslan Nikolaev nruslan_devel at yahoo.com
Tue Jun 8 10:06:07 PDT 2010


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 at digitalmars.com> wrote:

> From: Walter Bright <newshound1 at digitalmars.com>
> Subject: Re: Wide characters support in D
> To: digitalmars-d at puremagic.com
> Date: Tuesday, June 8, 2010, 8:36 PM
> Ruslan Nikolaev wrote:
> > No. From the very beginning I said "it would also be
> nice to have some
> > builtin function for conversion to dchar". That means
> it would be nice to
> > have function that converts from tchar (regardless of
> its width) to UTF-32.
> > The reason was always clear - you normally don't need
> UTF-32 chars/strings
> > 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.
> 


      


More information about the Digitalmars-d mailing list