tiny object-instantiation perf. tweak

svn: r14534
This commit is contained in:
Matthew Flatt 2009-04-16 21:24:42 +00:00
parent 7c80111b2c
commit 09320cea1c

View File

@ -2777,8 +2777,10 @@
;; All unconsumed named-args must have #f
;; "name"s, otherwise an error is raised in
;; the leftovers checking.
(if (null? al)
named-args
(append (map (lambda (x) (cons #f x)) al)
named-args)]
named-args))]
[else
(obj-error 'instantiate
"too many initialization arguments:~a~a"