#96: Lambda list &rest compilation error -----------------------------+---------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: unscheduled Component: compiler | Version: Keywords: compiler lambda | -----------------------------+---------------------------------------------- The following lambda list
{{{ (defun hashmap-to-hashtable (&key (k #'identity) &rest rest) (let ((foo))) }}}
fails to compile with the error {{{ &REST/&BODY must be followed by a variable. }}}
Reported by Alan Ruttenberg
#96: Lambda list &rest compilation error -----------------------+---------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: unscheduled Component: compiler | Version: Resolution: | Keywords: compiler lambda -----------------------+----------------------------------------------------
Comment(by mevenson):
The error is in JVM::REWRITE-LAMBDA.
#96: Lambda list &rest interpreter error --------------------------+------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: new Priority: minor | Milestone: unscheduled Component: interpreter | Version: Resolution: | Keywords: compiler lambda --------------------------+------------------------------------------------- Changes (by mevenson):
* component: compiler => interpreter
Comment:
As Alessio points out, &rest has to be specified before &key arguments, so this is a problem with the interpreter, not the compiler.
#96: Lambda list &rest interpreter error --------------------------+------------------------------------------------- Reporter: mevenson | Owner: ehuelsmann Type: defect | Status: closed Priority: minor | Milestone: 0.26 Component: interpreter | Version: Resolution: fixed | Keywords: compiler lambda --------------------------+------------------------------------------------- Changes (by ehuelsmann):
* status: new => closed * resolution: => fixed * milestone: unscheduled => 0.26
Comment:
0.26 reports
"&REST/&BODY must precede &KEY"
which is the correct error to show.
armedbear-ticket@common-lisp.net