PROPOSAL: Equivalence operators (formerly titled	"Sameness	operators") (Version 3)
    Mark Thornton 
    mthornton at optrak.co.uk
       
    Fri May  8 03:05:17 PDT 2009
    
    
  
Derek Foster wrote:
> and adds additional overloadings to existing operators:
> a < b     a.compareTo(b) < 0, or a < b for primitive types.
>
>   
If 'a' is Float (or Double) and 'b' is float (double), then you have to 
unbox 'a' to apply the primitive comparison and not box 'b' and apply 
.compareTo. Boxing 'b' to apply compareTo would be a breaking change.
Mark Thornton
    
    
More information about the coin-dev
mailing list