The closure library was designed just for the Web language, which operates after expansion, so it never saw normal lambdas. The documentation, however, advertises it for general use and it disallowed keyword arguments. This fixes that problem.

svn: r17844
This commit is contained in:
Jay McCarthy 2010-01-26 21:59:22 +00:00
parent 024f635203
commit 364e4ff3d5

View File

@ -78,9 +78,12 @@
; prop-vals:
(list (cons prop:serializable #,CLOSURE:serialize-info-id)
(cons prop:procedure
(#%plain-lambda (clsr . args)
(make-keyword-procedure
(lambda (kws kw-vals clsr . rst)
(let-values ([#,fvars ((CLOSURE-ref clsr 0))])
(apply #,stx args)))))
(keyword-apply #,stx
kws kw-vals
rst))))))
#f ; inspector