Always false float comparisons

Nordlöw via Digitalmars-d digitalmars-d at puremagic.com
Thu May 12 02:22:02 PDT 2016


On Tuesday, 10 May 2016 at 21:44:45 UTC, Walter Bright wrote:
>>   if (b == 1000) {}
>> "Comparison is always false: literal 1000 is not representable
>> as 'byte'"

What's wrong with having this warning?

> You're right, we may be opening a can of worms with this.




More information about the Digitalmars-d mailing list