The Case Against Autodecode

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 2 15:26:42 PDT 2016


On 6/2/2016 3:11 PM, Timon Gehr wrote:
> Well, this is a somewhat different case, because 10000 is just not representable
> as a byte. Every value that fits in a byte fits in an int though.
>
> It's different for code units. They are incompatible both ways.

Not exactly. (c == 'รถ') is always false for the same reason that (b == 1000) is 
always false.

I'm not sure what the right answer is here.


More information about the Digitalmars-d mailing list