Re: Exceptions inside assertions

From: Damien Doligez (Damien.Doligez@inria.fr)
Date: Fri Nov 12 1999 - 17:10:13 MET


Date: Fri, 12 Nov 1999 17:10:13 +0100
From: Damien Doligez <Damien.Doligez@inria.fr>
Message-Id: <199911121610.RAA07369@tobago.inria.fr>
To: caml-list@inria.fr
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



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:28 MET