Browse thread
Re: Exceptions inside assertions
- Damien Doligez
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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