fix expansion of match-define to use define-values instead of begin with set!

svn: r5786
This commit is contained in:
Matthew Flatt 2007-03-19 01:55:21 +00:00
parent 5f7c85ac1e
commit 81b7aea7d9

View File

@ -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))))]))
)