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
[Caml-list] Silently discarded exceptions?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-19 (13:54)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Silently discarded exceptions?
> I have a test on the first char of a string (Position 0).
> If the string is "" then normally (in the toplevel) an
> exception is thrown.
> When compiling with ocamlc, the program does not
> mention that there was an Exception: it silently
> stops the execution of my test.

Chances are that your program contains a "try ... with x -> ..."
or "try ... with _ -> ..." that catches the exception arising from the
invalid string access.

- Xavier Leroy
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners