unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#20938: make-dynamic-state, with-dynamic-state & exceptions
@ 2015-06-30 13:50 Josep Portella Florit
  2015-07-01  6:49 ` bug#20938: Improved workaround Josep Portella Florit
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Josep Portella Florit @ 2015-06-30 13:50 UTC (permalink / raw)
  To: 20938

This code crashes Guile 2.0.11:

(define x (make-dynamic-state))
(with-dynamic-state x (lambda () (/ 1 0)))


For now I'm using this workaround:

(let ((w-d-s with-dynamic-state))
  (set! with-dynamic-state
        (lambda (s p)
          (let ((e #f))
            (w-d-s s (lambda ()
                       (catch #t p
                         (lambda x (set! e x)))))
            (when e (apply throw e))))))





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

end of thread, other threads:[~2017-03-10 22:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-30 13:50 bug#20938: make-dynamic-state, with-dynamic-state & exceptions Josep Portella Florit
2015-07-01  6:49 ` bug#20938: Improved workaround Josep Portella Florit
2016-03-13 14:57 ` bug#20938: More information Josep Portella Florit
2016-06-24  7:11 ` bug#20938: make-dynamic-state, with-dynamic-state & exceptions Andy Wingo
2016-06-24 14:58   ` Josep Portella Florit
2017-02-28 14:17 ` Andy Wingo
     [not found]   ` <1b66634b-9e69-da86-116a-088eafb383e7@primfilat.com>
2017-03-01 17:30     ` Andy Wingo
2017-03-03 22:15       ` Josep Portella Florit
2017-03-06 19:55         ` Andy Wingo
2017-03-07 20:36         ` Andy Wingo
2017-03-10 22:00           ` Josep Portella Florit

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