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
Re: Exceptions inside assertions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 1999-11-12 (16:48)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: Exceptions inside assertions
>From: Gerd Stolpmann <Gerd.Stolpmann@darmstadt.netsurf.de>
>I have a problem with exceptions which are raised within the expression of an
>assertion, e.g.
>assert (raise Not_found)
>The current behaviour is that the exception "falls through the
>assertion" which may not be appropriate for some cases.

I'd say this is a bug: the doc says Assert_failure is raised whenever
the expression does not evaluate to true.

This will be fixed in the next release.

-- Damien