Implicit encoding conversion on string ~= int ?

bearophile bearophileHUGS at lycos.com
Sun Jun 23 09:37:16 PDT 2013


Adam D. Ruppe:

> char[] a;
> int b = 1000;
> a ~= b;
>
> the "a ~= b" is more like "a ~= cast(dchar) b", and then dchar 
> -> char means it may be multibyte encoded, going from utf-32 to 
> utf-8.

I didn't know that, is this already in Bugzilla?

Bye,
bearophile


More information about the Digitalmars-d mailing list