fix to handle multiple value return
This commit is contained in:
parent
457a6c16c3
commit
49a42fd089
|
@ -15,7 +15,9 @@
|
|||
(let ([e (with-handlers ([values (lambda (exn)
|
||||
(printf "~a raised exception ~a~n" 'f exn)
|
||||
(raise exn))])
|
||||
(apply f l))])
|
||||
(printf "~a result was ~a~n" 'f e)
|
||||
e)))]
|
||||
(call-with-values (lambda () (apply f l)) list))])
|
||||
(if (and (pair? e) (null? (cdr e)))
|
||||
(printf "~a result was ~a~n" 'f (car e))
|
||||
(printf "~a results were ~a~n" 'f e))
|
||||
(apply values e))))]
|
||||
[(_ f . args) (debug (f . args))]))
|
Loading…
Reference in New Issue
Block a user