Hello,

(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 ?
(http://www.lispworks.com/documentation/HyperSpec/Body/f_cmp.htm)

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


_______________________________________________
Gcl-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gcl-devel

Reply via email to