1

为什么这是 SBCL 中的错误?你如何调用传递给你的函数的 lambda?

* (defun call-foo (foo) (foo))
; in: DEFUN CALL-FOO
;     (SB-INT:NAMED-LAMBDA CALL-FOO
;         (FOO)
;       (BLOCK CALL-FOO (FOO)))
;
; caught STYLE-WARNING:
;   The variable FOO is defined but never used.

; in: DEFUN CALL-FOO
;     (FOO)
;
; caught STYLE-WARNING:
;   undefined function: FOO
;
; compilation unit finished
;   Undefined function:
;     FOO
;   caught 2 STYLE-WARNING conditions

CALL-FOO
4

1 回答 1

3

这是对 Common Lisp 的介绍: http ://www.cs.cmu.edu/~dst/LispBook/

您可能还想了解FUNCALL

于 2013-08-03T19:21:06.833 回答