mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +02:00
(lambda*): Make sure that BODY is always put into a
real body context so that it can contain internal definitions. Thanks to Matthias Köppe!
This commit is contained in:
parent
269ce4390e
commit
1987c8ee57
1 changed files with 2 additions and 1 deletions
|
@ -294,7 +294,8 @@
|
||||||
`((if (not (null? ,rest-gensym))
|
`((if (not (null? ,rest-gensym))
|
||||||
(error "Too many arguments.")))
|
(error "Too many arguments.")))
|
||||||
'())
|
'())
|
||||||
,@BODY)))
|
(let ()
|
||||||
|
,@BODY))))
|
||||||
`(lambda (,@non-optional-args . ,(if rest-arg rest-arg '()))
|
`(lambda (,@non-optional-args . ,(if rest-arg rest-arg '()))
|
||||||
,@BODY))))))
|
,@BODY))))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue