From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 4CF36BBBC for ; Wed, 1 Mar 2006 01:05:53 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k2105qQV014161 for ; Wed, 1 Mar 2006 01:05:52 +0100 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 BAA20094 for ; Wed, 1 Mar 2006 01:05:51 +0100 (MET) Received: from rabbit.math.nagoya-u.ac.jp (rabbit.math.nagoya-u.ac.jp [133.6.130.5]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k2105nFo024464 for ; Wed, 1 Mar 2006 01:05:51 +0100 Received: from localhost (moose-172 [172.16.254.3]) by rabbit.math.nagoya-u.ac.jp (8.12.11/3.7W) with ESMTP id k2105mRR013583; Wed, 1 Mar 2006 09:05:48 +0900 (JST) Date: Wed, 01 Mar 2006 09:03:07 +0900 (JST) Message-Id: <20060301.090307.21363387.garrigue@math.nagoya-u.ac.jp> To: louis.gesbert@laposte.net Cc: caml-list@inria.fr Subject: Re: [Caml-list] Bugs with pattern-matching and exceptions From: Jacques Garrigue In-Reply-To: References: X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 4404E560.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 4404E55D.002 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 bool:01 semantics:01 bool:01 exception:01 exception:01 corrected:01 corrected:01 exceptions:01 jacques:01 jacques:01 caml:02 match:02 match:02 garrigue:03 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 From: Louis Gesbert > # exception E' = E;; > # match E with E' -> true | _ -> false;; > - : bool = false > > This is with Caml 3.08.3, but it doesn't seem to have been corrected in > earlier versions. Any ideas ? If the structure exception E = F is > considered useful, a stronger semantics should be attached to it, but is it > really ? In general bugs are not corrected in _earlier_ versions :-) This is fixed in 3.09. # exception E' = E;; # match E with E' -> true | _ -> false;; - : bool = true Jacques Garrigue