Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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 <>
>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