1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-30 15:00:21 +02:00

fix (apply f) -- without the args list

* module/language/tree-il/primitives.scm (apply): Only inline if we
  actually have an argument to apply.
This commit is contained in:
Andy Wingo 2009-11-06 11:16:54 +01:00
parent 1e2a8edb8b
commit 0e249fd359

View file

@ -276,8 +276,8 @@
(define-primitive-expander acons (x y z) (define-primitive-expander acons (x y z)
(cons (cons x y) z)) (cons (cons x y) z))
(define-primitive-expander apply (f . args) (define-primitive-expander apply (f a0 . args)
(@apply f . args)) (@apply f a0 . args))
(define-primitive-expander call-with-values (producer consumer) (define-primitive-expander call-with-values (producer consumer)
(@call-with-values producer consumer)) (@call-with-values producer consumer))