dynamic-wind inside thread thunk does not call after pasted by klm` on Thu May 22 13:53:06 2014


(define (trick)
  (dynamic-wind (lambda () (print "before"))
                (lambda () (error 'foo))
                (lambda () (print "after"))))

;; calls before and after, no surprises:
(trick)

;; calls before only - why?
(thread-start! (lambda () (trick)))

;; calls before and after, no surprises
(thread-start!
 (lambda () (handle-exceptions e (raise e) (trick))))

no title pasted by anonymous on Thu May 22 14:58:45 2014

fixed in 4.9rc1!

no title added by klm` on Thu May 22 16:34:00 2014

my mistake! this is still a problem in 4.9.0rc1!