* with-throw-handler -- how did I go this far without it
@ 2008-11-06 11:09 Andy Wingo
2008-11-07 23:13 ` Neil Jerram
0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2008-11-06 11:09 UTC (permalink / raw)
To: guile-user
While reviewing the Guile manual this morning, trying to figure out how
to shoehorn the VM into it, I ran across the section on
`with-throw-handler', which is like `catch' but does modify the dynamic
context from which the throw occured.
In short: arrrrgh! I've wanted this for years and I didn't know it
existed! I've had to put up with crap backtraces for a long time, just
because some intermediate code did a catch and rethrow, losing the
initial context and thus the backtrace -- argh.
Hopefully everyone already knew about this, but I write in case someone
did not.
Happy hacking,
Andy
--
http://wingolog.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: with-throw-handler -- how did I go this far without it
2008-11-06 11:09 with-throw-handler -- how did I go this far without it Andy Wingo
@ 2008-11-07 23:13 ` Neil Jerram
0 siblings, 0 replies; 2+ messages in thread
From: Neil Jerram @ 2008-11-07 23:13 UTC (permalink / raw)
To: Andy Wingo; +Cc: guile-user
On 06/11/2008, Andy Wingo <wingo@pobox.com> wrote:
>
> In short: arrrrgh! I've wanted this for years and I didn't know it
> existed! I've had to put up with crap backtraces for a long time, just
> because some intermediate code did a catch and rethrow, losing the
> initial context and thus the backtrace -- argh.
It's good to know that it's useful, but I don't completely understand.
lazy-catch also preserves the backtrace, and that's been there for
ages.
Neil
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-07 23:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-06 11:09 with-throw-handler -- how did I go this far without it Andy Wingo
2008-11-07 23:13 ` Neil Jerram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).