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 PAA05491; Sun, 15 Jul 2001 15:05:29 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA05476 for ; Sun, 15 Jul 2001 15:05:28 +0200 (MET DST) Received: from dynabook (210.238.31.253.tcn-catv.ne.jp [210.238.31.253]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6FD5PL17846 for ; Sun, 15 Jul 2001 15:05:27 +0200 (MET DST) Received: from dynabook ([127.0.0.1] helo=localhost ident=sumii) by dynabook with esmtp (Exim 3.12 #1 (Debian)) id 15LlaG-0007NP-00; Sun, 15 Jul 2001 22:05:16 +0900 To: caml-list@inria.fr From: eijiro_sumii@anet.ne.jp cc: sumii@yl.is.s.u-tokyo.ac.jp Subject: [Caml-list] exceptions and the polymorphic equality X-Mailer: Mew version 1.94.2 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20010715220500D.sumii@yl.is.s.u-tokyo.ac.jp> Date: Sun, 15 Jul 2001 22:05:00 +0900 X-Dispatcher: imput version 991025(IM133) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hello, I have a question about the polymorphic equality and exceptions: it seems to me that the behaviour of "=" is counter-intuitive with respect to pattern matching of exceptions, for example as follows. Objective Caml version 3.01 # exception Foo;; exception Foo # let e = Foo;; val e : exn = Foo # exception Foo;; exception Foo # let e' = Foo;; val e' : exn = Foo # e = e';; - : bool = true # match e with Foo -> true | _ -> false;; - : bool = false # try raise e with Foo -> ();; Uncaught exception: Foo. # I know that the two Foo's above should be distinct, but then shouldn't e = e' also return false? Is this issue well known? Eijiro ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr