Re: Exceptions inside assertions

From: Damien Doligez (
Date: Fri Nov 12 1999 - 17:10:13 MET

Date: Fri, 12 Nov 1999 17:10:13 +0100
From: Damien Doligez <>
Message-Id: <>
Subject: Re: Exceptions inside assertions

>From: Gerd Stolpmann <>
>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