change expansion of application with keyword arguments to use quoted lists instead of lifting

svn: r15083
This commit is contained in:
Matthew Flatt 2009-06-04 21:44:20 +00:00
parent 3679f6f675
commit ae7dab88d3

View File

@ -694,14 +694,11 @@
(lambda (a b)
(keyword<? (syntax-e (car a))
(syntax-e (car b)))))]
[lifted (syntax-local-lift-expression
#`(list #,@(map (lambda (p) #`(quote #,(car p)))
sorted-kws)))]
[cnt (+ 1 (length args))])
(quasisyntax/loc stx
(let #,(reverse bind-accum)
((keyword-procedure-extract #,lifted #,cnt #,(car args))
#,lifted
((keyword-procedure-extract '#,(map car sorted-kws) #,cnt #,(car args))
'#,(map car sorted-kws)
(list #,@(map cdr sorted-kws))
. #,(cdr args)))))]
[(keyword? (syntax-e (car l)))