Version française
Home     About     Download     Resources     Contact us    
Browse thread
Equality of functional values
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe TROESTLER <Christophe.Troestler@u...>
Subject: Re: [Caml-list] Equality of functional values
On Tue, 30 Jan 2007, Fernando Alegre <fernando@cc.gatech.edu> wrote:
> 
> Add a new operator =. for floating-point-aware equality that works on
> everything the way = works now.
> 
> Would not this make everyone happy?

No.  Why not take the suggestion of Gerd Stolpmann and declare

  let ( = ) x y = Pervasives.compare x y = 0

at the beginning of your files ?

ChriS