opCmp and opEquals woes
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 23 23:36:03 PDT 2014
On Thursday, 24 July 2014 at 06:18:34 UTC, Daniel Murphy wrote:
> "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.
So I keep making the same typo :P...
For fuzzy numbers you can define less than such that a<b and b<a
both are true... yes?
More information about the Digitalmars-d
mailing list