opCmp and opEquals woes

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 23 23:18:53 PDT 2014


"Ola Fosheim Grøstad" " wrote in message 
news:qxtukjuohhzngcutmmpz at forum.dlang.org...

> 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)

a<b and b>a can be true for ints. 



More information about the Digitalmars-d mailing list