English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

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: 2005-02-28 (10:49)
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.


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)

The FreerP Project