Version française
Home     About     Download     Resources     Contact us    
Browse thread
Fragile pattern matching?!
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alex Baretta <alex@b...>
Subject: Re: [Caml-list] Fragile pattern matching?!
Luc Maranget wrote:

> 
> Hello,
> 
> The warning (which you do not supply) attempt to be informative.
> 
> # ocamlc -w A alex.ml
> File "alex.ml", line 13, characters 4-5:
> Warning E: this pattern is fragile. It would hide
> the addition of new constructors to the data types it matches.

Got it! Makefile brain-damage on our part. We messed with the 
enabled/disable warnings and all of a sudden, without meaning to do it, 
we enable the E warning. This is why the warning, which used not to be 
flagged, suddenly began appearing.

Alex


-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
<http://www.asxcaml.org/>

The FreerP Project
<http://www.freerp.org/>