better string

Stanislav Blinov via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 7 17:59:06 PDT 2017


On Wednesday, 7 June 2017 at 23:57:44 UTC, Mike B Johnson wrote:

> Or will simply setting "alias string = wstring;" at the top of 
> my program end up having the entire program, regardless of what 
> it is, use wstring's instead of strings?

It doesn't work that way and it can't work that way: you'd never 
be able to link against anything if it did.

> The reason I say this is because I converted my program to use 
> wstrings...

Why? Why trade one variable-width encoding for another, 
especially a nasty one like UTF-16?


More information about the Digitalmars-d mailing list