Ticket #15: special-defun.lisp
| File special-defun.lisp, 401 bytes (added by , 17 years ago) |
|---|
| Line | |
|---|---|
| 1 | (in-package :cl-user) |
| 2 | |
| 3 | (defvar bar nil) |
| 4 | |
| 5 | (defun foo (&key bar) |
| 6 | 42) |
| 7 | |
| 8 | |
| 9 | #| |
| 10 | CL-USER> (foo :bar 2) |
| 11 | |
| 12 | Debugger invoked on condition of type PROGRAM-ERROR: |
| 13 | Unrecognized keyword argument :BAR |
| 14 | |
| 15 | ... |
| 16 | |
| 17 | which is a little weird, because the lambda list for FOO looks ok: |
| 18 | |
| 19 | CL-USER> (describe #'foo) |
| 20 | #<FUNCTION FOO {5B663F}> is an object of type COMPILED-FUNCTION. |
| 21 | The function's lambda list is: |
| 22 | (&KEY BAR) |
| 23 | |
| 24 | |# |