Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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: 2008-02-27 (21:56)
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.


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
 Angry researcher: French Universities need reforms, but the LRU act
brings liquidations.