Overloading float operators
    rumbu 
    rumbu at rumbu.ro
       
    Mon Dec 11 19:28:47 UTC 2017
    
    
  
Is there any way to overload specific floating point operators?
https://dlang.org/spec/expression.html#floating-point-comparisons
I'm using a decimal data type (a struct) and one of the possible 
values is NaN, that's why I need these operators.
I know also that this also was discussed, but is there any way to 
separately implement == and !=, so both return true or false in 
the same time?
The reason is the same: NaN == NaN = false and NaN != NaN = false 
in the same time.
    
    
More information about the Digitalmars-d-learn
mailing list