unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* lazy-handler-dispatch and debug-on-error
@ 2003-11-12 23:18 Neil Jerram
  2003-11-13 20:51 ` Marius Vollmer
  2003-11-17 15:02 ` Paul Jarc
  0 siblings, 2 replies; 9+ messages in thread
From: Neil Jerram @ 2003-11-12 23:18 UTC (permalink / 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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-12-06 11:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12 23:18 lazy-handler-dispatch and debug-on-error Neil Jerram
2003-11-13 20:51 ` 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

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).