From: Xavier Leroy <xavier.leroy@inria.fr>
To: Oliver Bandel <oliver@first.in-berlin.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Silently discarded exceptions?
Date: Mon, 19 Aug 2002 15:54:27 +0200 [thread overview]
Message-ID: <20020819155427.C6276@pauillac.inria.fr> (raw)
In-Reply-To: <Pine.LNX.3.95.1020818164703.2283A-100000@first.in-berlin.de>; from oliver@first.in-berlin.de on Sun, Aug 18, 2002 at 04:52:30PM +0200
> 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
next prev parent reply other threads:[~2002-08-19 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-08-18 14:52 Oliver Bandel
2002-08-19 13:54 ` Xavier Leroy [this message]
2002-08-19 17:44 ` Oliver Bandel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020819155427.C6276@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--cc=caml-list@inria.fr \
--cc=oliver@first.in-berlin.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox