[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] (compile nil #'f) => "def not a lambda expression"

From: Robert Dodier
Subject: [Gcl-devel] (compile nil #'f) => "def not a lambda expression"
Date: Mon, 27 Mar 2006 08:06:45 -0700


(defun f (x) x)
(compile nil #'f) => "def not a lambda expression"

Is that to be expected from what CLHS has to say about compile ?

I suppose it hinges on whether #'f is a lambda expression or a function
or something else. I would guess it is a function, but I am not enlightened,
so I am probably reading the CLHS incorrectly.

I also find that (compile nil (coerce 'f 'function)) yields the same
error message.

Changing the (compile nil <foo>) to (compile <bar>) isn't an option,
unfortunately, since <foo> may be something other than a symbol.

Incidentally SBCL and Clisp are happy with (compile nil #'f).

I am working with gcl 2.6.7.

Thanks for any insights,
Robert Dodier

reply via email to

[Prev in Thread] Current Thread [Next in Thread]