mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
use #nil as default for elisp rest parameters
* module/langauge/elisp/compile-tree-il.scm (compile-lambda): Bind the rest parameter to `#nil' instead of `()' by default.
This commit is contained in:
parent
5ddd9645c9
commit
663c5875f5
1 changed files with 8 additions and 1 deletions
|
@ -326,7 +326,14 @@
|
|||
(ensure-globals!
|
||||
loc
|
||||
dynamic-ids
|
||||
(let* ((tree-il (compile-expr `(progn ,@forms)))
|
||||
(let* ((tree-il
|
||||
(compile-expr
|
||||
(if rest-id
|
||||
`(let ((,rest-id (if ,rest-id
|
||||
,rest-id
|
||||
nil)))
|
||||
,@forms)
|
||||
`(progn ,@forms))))
|
||||
(full-body
|
||||
(if (null? dynamic)
|
||||
tree-il
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue