guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lazy-handler-dispatch and debug-on-error


From: Neil Jerram
Subject: Re: lazy-handler-dispatch and debug-on-error
Date: 14 Nov 2003 21:11:45 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "Marius" == Marius Vollmer <address@hidden> writes:

    Marius> Neil Jerram <address@hidden> writes:
    >> Is there any reason why the lazy-catch around the main REPL loop in
    >> boot-9.scm could not be changed [...]

    Marius> I dont see any.  Having a comment somewhere that explains
    Marius> that <REPL> is allowed to modify lazy-handler-dispatch
    Marius> would be good, of course.

Does the following look OK?

                                  ;; Use a closure here rather than
                                  ;; just `lazy-handler-dispatch' so
                                  ;; that lookup of
                                  ;; lazy-handler-dispatch's value is
                                  ;; deferred until a throw occurs.
                                  ;; This means that if code executed
                                  ;; in the REPL just above set!s
                                  ;; lazy-handler-dispatch, the new
                                  ;; value will be used to handle the
                                  ;; next throw from the REPL.
                                  (lambda args
                                    (apply lazy-handler-dispatch args))))

Regards,
        Neil





reply via email to

[Prev in Thread] Current Thread [Next in Thread]