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 nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 40AB6BBBB for ; Wed, 1 Mar 2006 08:00:50 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k2170nlK025873 for ; Wed, 1 Mar 2006 08:00:49 +0100 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 IAA25311 for ; Wed, 1 Mar 2006 08:00:48 +0100 (MET) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k2170m8r021519 for ; Wed, 1 Mar 2006 08:00:48 +0100 Received: from [192.168.0.2] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by smtp4-g19.free.fr (Postfix) with ESMTP id D02E74F2E2; Wed, 1 Mar 2006 08:00:47 +0100 (CET) Message-ID: <4405469F.9030409@inria.fr> Date: Wed, 01 Mar 2006 08:00:47 +0100 From: Alain Frisch User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jacques Garrigue Cc: louis.gesbert@laposte.net, caml-list@inria.fr Subject: Re: [Caml-list] Bugs with pattern-matching and exceptions References: <20060301.090307.21363387.garrigue@math.nagoya-u.ac.jp> In-Reply-To: <20060301.090307.21363387.garrigue@math.nagoya-u.ac.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 440546A1.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 440546A0.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 caml-list:01 bool:01 3.08:01 complained:01 bug:01 wrote:01 exception:01 exception:01 exceptions:01 jacques:01 match:02 garrigue:03 bugs: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 Jacques Garrigue wrote: > This is fixed in 3.09. > > # exception E' = E;; > # match E with E' -> true | _ -> false;; > - : bool = true This worked also in 3.08 and is not what Louis complained about ("exception E;; exception E'=E;; exception E;; E=E'" returning true). I think there is and was really no bug in the pattern matching, just a weird behavior of the generic comparison function on exception values. -- Alain