fix expansion of match-define to use define-values instead of begin with set!
svn: r5786
This commit is contained in:
parent
5f7c85ac1e
commit
81b7aea7d9
|
@ -95,10 +95,9 @@
|
|||
(lambda (sf bv)
|
||||
(set! **match-bound-vars** bv)
|
||||
(with-syntax ([((vars . vals) ...) (reverse bv)])
|
||||
#'(begin (set! vars vals) ...))))]
|
||||
#'(values vals ...))))]
|
||||
[(vars ...) (map car (reverse **match-bound-vars**))])
|
||||
#'(begin
|
||||
(define vars #f) ...
|
||||
#'(define-values (vars ...)
|
||||
(let ([the-exp exp])
|
||||
compiled-match))))]))
|
||||
)
|
Loading…
Reference in New Issue
Block a user