Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Warning: this match case is unused.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pixel <pixel@m...>
Subject: Re: [Caml-list] Warning: this match case is unused.
"Rolf Wester" <rolf.wester@ilt.fhg.de> writes:

>   match n with 
> 	  n0 -> 1;
> 	| _  ->  0;;

make it

   match n with 
 	  n0' when n0 = n0' -> 1;
 	| _  ->  0;;

:)
-------------------
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