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 LAA12842; Thu, 4 Oct 2001 11:06:52 +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 LAA12838 for ; Thu, 4 Oct 2001 11:06:51 +0200 (MET DST) Received: from beaune.inria.fr (beaune.inria.fr [128.93.8.3]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f9496oP21213; Thu, 4 Oct 2001 11:06:50 +0200 (MET DST) Received: by beaune.inria.fr (8.8.8/1.1.22.3/14Sep99-0328PM) id LAA0000001622; Thu, 4 Oct 2001 11:06:50 +0200 (MET DST) From: Luc Maranget Message-Id: <200110040906.LAA0000001622@beaune.inria.fr> Subject: Re: [Caml-list] Pattern matcher no more supposed to warn on non exhaustive patterns ? To: luc.maranget@inria.fr (Luc Maranget) Date: Thu, 4 Oct 2001 11:06:50 +0200 (MET DST) Cc: jeanmarc.eber@lexifi.com (Jean-Marc Eber), caml-list@inria.fr (caml-list) In-Reply-To: <200110040755.JAA0000000512@beaune.inria.fr> from "Luc Maranget" at oct 04, 2001 09:55:52 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hum I wrote too fast... >>>> 1. Provably unused guarded clauses are not detected. This is not excatly true, some are detected. > match x with > | Some _ -> "not even (I mean odd)" > | Some x when x mod 2 = 0 -> "even" > | None -> "nothing" > There is a warning for the unused clause number 2. --Luc ------------------- 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