From: Neil Jerram <neil@ossau.uklinux.net>
Subject: lazy-handler-dispatch and debug-on-error
Date: 12 Nov 2003 23:18:20 +0000 [thread overview]
Message-ID: <m3d6bx18hv.fsf@laruns.ossau.uklinux.net> (raw)
Is there any reason why the lazy-catch around the main REPL loop in
boot-9.scm could not be changed from
(lazy-catch #t
(lambda () <REPL>)
lazy-handler-dispatch)
to
(lazy-catch #t
(lambda () <REPL>)
(lambda args
(apply lazy-handler-dispatch args)))
?
The difference is that with this change, if code executed inside
<REPL> set!s lazy-handler-dispatch to a new definition, the new
definition takes effect on the first throw from the lazy catch.
Whereas without the change it only takes effect on a throw from the
next time that the lazy catch is entered.
I'm currently interested in this because it's a way of supporting some
debug-on-error function for code executed in the Guile REPL - see
debug-on-error in debugger.scm for details. It's not a good way of
doing debug-on-error, as it doesn't help with script (guile -s) code
or with any throws that are caught by an inner catch. But it's the
only mechanism currently available, I believe.
Thanks,
Neil
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel
next reply other threads:[~2003-11-12 23:18 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-12 23:18 Neil Jerram [this message]
2003-11-13 20:51 ` lazy-handler-dispatch and debug-on-error Marius Vollmer
2003-11-14 21:11 ` Neil Jerram
2003-11-15 0:55 ` Marius Vollmer
2003-11-17 15:02 ` Paul Jarc
2003-11-17 21:13 ` Neil Jerram
2003-11-26 17:27 ` Mikael Djurfeldt
2003-11-27 21:03 ` Neil Jerram
2003-12-06 11:57 ` Neil Jerram
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3d6bx18hv.fsf@laruns.ossau.uklinux.net \
--to=neil@ossau.uklinux.net \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).