The Case Against Autodecode
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 2 16:18:14 PDT 2016
On Thursday, 2 June 2016 at 21:56:10 UTC, Walter Bright wrote:
> Yes, you have a good point. But we do allow things like:
>
> byte b;
> if (b == 10000) ...
Why allowing char/wchar/dchar comparisons is wrong:
void main()
{
string s = "Привет";
foreach (c; s)
assert(c != 'Ñ');
}
From my post from 2014:
http://forum.dlang.org/post/knrwiqxhlvqwxqshyqpy@forum.dlang.org
More information about the Digitalmars-d
mailing list