tiny object-instantiation perf. tweak
svn: r14534
This commit is contained in:
parent
7c80111b2c
commit
09320cea1c
|
@ -2777,8 +2777,10 @@
|
||||||
;; All unconsumed named-args must have #f
|
;; All unconsumed named-args must have #f
|
||||||
;; "name"s, otherwise an error is raised in
|
;; "name"s, otherwise an error is raised in
|
||||||
;; the leftovers checking.
|
;; the leftovers checking.
|
||||||
|
(if (null? al)
|
||||||
|
named-args
|
||||||
(append (map (lambda (x) (cons #f x)) al)
|
(append (map (lambda (x) (cons #f x)) al)
|
||||||
named-args)]
|
named-args))]
|
||||||
[else
|
[else
|
||||||
(obj-error 'instantiate
|
(obj-error 'instantiate
|
||||||
"too many initialization arguments:~a~a"
|
"too many initialization arguments:~a~a"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user