Fixed bug in selfhost-parameters.rkt

This commit is contained in:
Jens Axel Søgaard 2014-08-20 17:49:32 +02:00
parent 00ff2f2103
commit f6ca5855e1

View File

@ -32,7 +32,9 @@
(define-syntax (parameterize stx) (define-syntax (parameterize stx)
(syntax-case stx () (syntax-case stx ()
[(_ ([param-expr val-expr]) body ...) [(_ () body ...)
#'(let () body ...)]
[(_ ([param-expr val-expr] more ...) body ...)
#'(let () #'(let ()
(define proc param-expr) (define proc param-expr)
(define p (find-parameter proc)) (define p (find-parameter proc))
@ -41,5 +43,5 @@
(define vs (cons v old)) (define vs (cons v old))
(set-parameter-values! p vs) (set-parameter-values! p vs)
(begin0 (begin0
body ... (parameterize (more ...) body ...)
(set-parameter-values! p old)))])) (set-parameter-values! p old)))]))