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
|
||||
;; "name"s, otherwise an error is raised in
|
||||
;; the leftovers checking.
|
||||
(append (map (lambda (x) (cons #f x)) al)
|
||||
named-args)]
|
||||
(if (null? al)
|
||||
named-args
|
||||
(append (map (lambda (x) (cons #f x)) al)
|
||||
named-args))]
|
||||
[else
|
||||
(obj-error 'instantiate
|
||||
"too many initialization arguments:~a~a"
|
||||
|
|
Loading…
Reference in New Issue
Block a user