WAT: opCmp and opEquals woes

via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 23 22:02:37 PDT 2014


On Wednesday, 23 July 2014 at 23:02:48 UTC, H. S. Teoh via 
Digitalmars-d wrote:
>> fuzzy numbers it gets even worse. You can define it such that 
>> a<b and
>> b>a both are true...
>
> (a<b && b>a) is true for ints.

That was a typo, for fuzzy numbers you can define less than such 
that a<b and b>a both are true.

Fuzzy(-1,0,1) vs Fuzzy(-2,0,2)




More information about the Digitalmars-d mailing list