[armedbear-ticket] [armedbear] #96: Lambda list &rest compilation error
![](https://secure.gravatar.com/avatar/bfc2df4941985c6757bb9cc05a33e95f.jpg?s=120&d=mm&r=g)
#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 -- Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/96> armedbear <http://common-lisp.net/project/armedbear> armedbear
![](https://secure.gravatar.com/avatar/bfc2df4941985c6757bb9cc05a33e95f.jpg?s=120&d=mm&r=g)
#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. -- Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/96#comment:1> armedbear <http://common-lisp.net/project/armedbear> armedbear
![](https://secure.gravatar.com/avatar/bfc2df4941985c6757bb9cc05a33e95f.jpg?s=120&d=mm&r=g)
#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. -- Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/96#comment:2> armedbear <http://common-lisp.net/project/armedbear> armedbear
![](https://secure.gravatar.com/avatar/bfc2df4941985c6757bb9cc05a33e95f.jpg?s=120&d=mm&r=g)
#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. -- Ticket URL: <http://trac.common-lisp.net/armedbear/ticket/96#comment:3> armedbear <http://common-lisp.net/project/armedbear> armedbear
participants (1)
-
armedbear