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 PAA05913; Wed, 18 Jul 2001 15:36:45 +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 PAA05909 for ; Wed, 18 Jul 2001 15:36:44 +0200 (MET DST) Received: from moutvdom00.kundenserver.de (moutvdom00.kundenserver.de [195.20.224.149]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f6IDahX07141 for ; Wed, 18 Jul 2001 15:36:44 +0200 (MET DST) Received: from [195.20.224.219] (helo=mrvdom03.schlund.de) by moutvdom00.kundenserver.de with esmtp (Exim 2.12 #2) id 15MrVG-0004nc-00 for caml-list@inria.fr; Wed, 18 Jul 2001 15:36:38 +0200 Received: from [62.154.173.138] (helo=pc022.bln.elmeg.de) by mrvdom03.schlund.de with esmtp (Exim 2.12 #2) id 15MrVG-0008ML-00 for caml-list@inria.fr; Wed, 18 Jul 2001 15:36:38 +0200 To: caml-list@inria.fr Subject: Re: [Caml-list] exceptions and the polymorphic equality References: <200107161511.RAA23787@pauillac.inria.fr> <20010717095912O.sumii@yl.is.s.u-tokyo.ac.jp> <20010718092820F.sumii@yl.is.s.u-tokyo.ac.jp> From: Nils Goesche Date: 18 Jul 2001 15:36:28 +0200 In-Reply-To: <20010718092820F.sumii@yl.is.s.u-tokyo.ac.jp> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk eijiro_sumii@anet.ne.jp writes: > From: Nils Goesche > > I can't see any ``issue'' here: > > > > # e == e';; > > - : bool = false > > > > # try raise e with e -> ();; > > - : unit = () > > Is this a kind of sophisticated joke or something?:-) It catches _any_ > exception. >>From which it follows as sure as hell that it'll catch the one you wanted to catch, right? Okok, I goofed, forget about it :-) > From: Nils Goesche > > OTOH, we also have > > > > # 2 == 2;; > > - : bool = true > > # 2.0 == 2.0;; > > - : bool = false > > > > So, this still doesn't seem like a bug to me... > > I've never said or even thought that "Foo == Foo" being false is a > bug; it just implies that constant exceptions are not "simple > single-word" objects (like integers and constant constructors) in > OCaml, I suppose, as floats are not. Apparently. Regards, -- Nils Goesche "Don't ask for whom the tolls." PGP key ID 0x42B32FC9 ------------------- 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