From: "David McClain" <dmcclain@azstarnet.com>
To: <caml-list@inria.fr>
Subject: Where did the exception occur?
Date: Mon, 30 Oct 2000 08:19:22 -0700 [thread overview]
Message-ID: <003801c04284$c937fda0$210148bf@dylan> (raw)
I would like to point out the folly of spending too much effort on language
design directed at displaying the location of an exception. As one who did
so, I can report that the effort was merciless, and although it does as
expected, I found that the location of the exception is rarely the source of
a problem...
Hence, I implemented an entire stack of last visited nodes to provide a
traceback. (I'm a glutton for punishment!). This not only slows the system
down, but only offers marginal improvement to debugging.
The best way to achieve the stated goal, so far, that I have found, is to
plant a "source coordinate" in the exception itself - something you can do
manually after declaring the exception type to contain this information. But
beware! you will often halt at nonsensical places...
- D.McClain
next reply other threads:[~2000-10-31 9:49 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-10-30 15:19 David McClain [this message]
-- strict thread matches above, loose matches on Subject: below --
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
2000-10-30 15:21 David McClain
2000-10-30 15:09 Greg Morrisett
2000-10-30 14:39 Greg Morrisett
2000-10-30 11:20 Dave Berry
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
2000-10-30 12:12 ` David Mentré
2000-11-02 17:29 ` Pierre Weis
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='003801c04284$c937fda0$210148bf@dylan' \
--to=dmcclain@azstarnet.com \
--cc=caml-list@inria.fr \
/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