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] Bug in Hashtbl ?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] Bug in Hashtbl ?
On Thu, 21 Mar 2002, Vesa Karvonen wrote:
> The following program raises an Out_of_memory exception. Is this:
> - correct behavior,
> - bug in Ocaml 3.04, or
> - bug somewhere else?

I would say "correct behavior"; the manual says, about generic

     Comparison between cyclic structures may not terminate.

Note that it would be costly to implement exact (structural) comparison of
cyclic structures (with a coinductive definition). What you want is
probably to test for physical equality; you can use the functorial version
of hash tables to do that.

-- Alain

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: