Higher level built-in strings
Steven Schveighoffer
schveiguy at yahoo.com
Tue Jul 20 12:05:28 PDT 2010
On Tue, 20 Jul 2010 14:29:43 -0400, Walter Bright
<newshound2 at digitalmars.com> wrote:
> bearophile wrote:
>>> Probably too late to change that one.
>> There is very little D2 code around, so little changes as this one are
>> possible still.
>
> It's a D1 feature, and has been there since nearly the beginning.
Since when did we care about D1 compatibility?
const, inout, array appending, final, typeof(string), TLS globals just to
name a few...
If you expect D1 code to compile fine and run on D2, you are deluding
yourself.
The worst that happens is that code starts using dchar instead of char,
and either a compiler error occurs and it's fixed simply by doing:
foreach(char c; str)
or it compiles fine because the type is never explicitly stated, and
what's the big deal there? The code just becomes more utf compatible for
free :)
-Steve
More information about the Digitalmars-d
mailing list