[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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
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