Opened 16 years ago
Closed 15 years ago
#96 closed defect (fixed)
Lambda list &rest interpreter error
| Reported by: | Mark Evenson | Owned by: | ehuelsmann |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.26 |
| Component: | interpreter | Version: | |
| Keywords: | compiler lambda | Cc: | |
| Parent Tickets: |
Description
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
Change History (3)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Component: | compiler → interpreter |
|---|---|
| Summary: | Lambda list &rest compilation error → Lambda list &rest interpreter error |
As Alessio points out, &rest has to be specified before &key arguments, so this is a problem with the interpreter, not the compiler.
comment:3 by , 15 years ago
| Milestone: | unscheduled → 0.26 |
|---|---|
| Resolution: | → fixed |
| Status: | new → closed |
0.26 reports
"&REST/&BODY must precede &KEY"
which is the correct error to show.
Note:
See TracTickets
for help on using tickets.
The error is in JVM::REWRITE-LAMBDA.