From: Stephan Houben <stephan@pcrm.win.tue.nl>
To: Pierre Weis <Pierre.Weis@inria.fr>, orodeh@cs.huji.ac.il (Ohad Rodeh)
Cc: caml-list@inria.fr
Subject: Re: Where did the exception occur?
Date: Mon, 30 Oct 2000 12:33:35 +0100 [thread overview]
Message-ID: <00103012374700.31696@pcrm> (raw)
In-Reply-To: <200010301102.MAA16616@pauillac.inria.fr>
On Mon, 30 Oct 2000, Pierre Weis wrote:
> > List,
> > I'd like to point out, that my application (LARGE OCaml project) is
> > embedded in C code, so one cannot use the OCaml debugger to replay and
> > find the exception. I'd be happy if a feature would be added to the
> > language to point out which line in the code the exception came from (I
> > understand this was added to SML ?).
> Otherwise, the addition you mentioned is interesting, if only we could
> implement it with no penalty on the speed of exception raising. Have
> you an idea of such a compilation scheme ?
I'm not the OP, but this can of course be implemented by having an
additional (hidden) field in the exception which contains the source
co-ordinate.
I'm not sure how expensive this would be. But it would be useful to have,
at least as a compiler option. I suppose raising of an exception is
expected to be slow anyway, as opposed to installing an exception
handler.
Stephan
--
ir. Stephan H.M.J. Houben
tel. +31-40-2474358 / +31-40-2743497
e-mail: stephanh@win.tue.nl
next prev parent reply other threads:[~2000-10-30 14:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-29 9:59 Mattias Waldau
2000-10-30 7:36 ` Pierre Weis
2000-10-30 7:57 ` Ohad Rodeh
2000-10-30 11:02 ` Pierre Weis
2000-10-30 11:33 ` Stephan Houben [this message]
2000-10-30 12:12 ` David Mentré
2000-11-02 17:29 ` Pierre Weis
2000-10-30 11:20 Dave Berry
2000-10-30 14:39 Greg Morrisett
2000-10-30 15:09 Greg Morrisett
2000-10-30 15:19 David McClain
2000-10-30 15:21 David McClain
2000-10-31 10:14 Damien Doligez
2000-10-31 12:09 ` Mattias Waldau
2000-10-31 16:52 ` Pierre Weis
2000-10-31 15:27 ` CREGUT Pierre FTRD/DTL/LAN
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=00103012374700.31696@pcrm \
--to=stephan@pcrm.win.tue.nl \
--cc=Pierre.Weis@inria.fr \
--cc=caml-list@inria.fr \
--cc=orodeh@cs.huji.ac.il \
--cc=stephanh@win.tue.nl \
/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