From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id QAA16034; Thu, 21 Mar 2002 16:46:48 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id QAA16258 for ; Thu, 21 Mar 2002 16:46:47 +0100 (MET) Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g2LFkkT16019 for ; Thu, 21 Mar 2002 16:46:47 +0100 (MET) Received: from clipper.ens.fr (clipper-gw.ens.fr [129.199.1.22]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id g2LFkkp00222 ; Thu, 21 Mar 2002 16:46:46 +0100 (CET) Received: from localhost (frisch@localhost) by clipper.ens.fr (8.9.2/jb-1.1) id QAA05064 ; Thu, 21 Mar 2002 16:46:46 +0100 (MET) Date: Thu, 21 Mar 2002 16:46:46 +0100 (MET) From: Alain Frisch To: Vesa Karvonen cc: caml-list@inria.fr Subject: Re: [Caml-list] Bug in Hashtbl ? In-Reply-To: <003901c1d0ee$01381110$422aa8c0@housemarque.fi> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 comparisons: 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 caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners