Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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