Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Comparison 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: Olivier Andrieu <andrieu@o...>
Subject: [Caml-list] Comparison of functional values

Hello list, 

I wanted to build a Set of functional value. But generic equality
can't be used for functional values (raises an exception ...). It is
therefore difficult to build a Set of such values because the Set.Make
functor requires a comparison function and relies
on (=).

Is there a way around this ? I thought I could use physical equality
(wich is OK wrt functional values) but there's no such thing as
`physical inequality'.

Olivier Andrieu
To unsubscribe, mail  Archives: