Version française
Home     About     Download     Resources     Contact us    
Browse thread
"Warning U: this match case is unused." -- Yes, I know
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: David Teller <David.Teller@u...>
Subject: Re: [Caml-list] "Warning U: this match case is unused." -- Yes, I know
Thanks, but to the best of my knowledge, irrefutable patterns and
Match_failure / Warning U are vaguely related at best. The first one is
part of the syntax while the second one depends on type definitions.

Cheers,
 David

On Wed, 2008-02-27 at 21:48 +0000, Till Varoquaux wrote:
> There is a function in camlp4 that checks for this:
> Ast.is_irrefut_patt
> Check that you have a recent ocaml. It used to be bugged (it was fixed
> in mid september).
> 
> Cheers

-- 
David Teller
 Security of Distributed Systems
  http://www.univ-orleans.fr/lifo/Members/David.Teller
 Angry researcher: French Universities need reforms, but the LRU act
brings liquidations.