Lisp HUG Maillist Archive

Oddity in the compile function

Hi all,

This isn't a bug that's affecting me, but making a typo in the listener I got:

CL-USER 17 > (compile (lambda (x) (1+ x))) ; not how compile works

Error: #<anonymous interpreted function 21BED8FA> is neither of type
SYMBOL nor a list of the form (SETF SYMBOL).
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Type :b for backtrace, :c <option number> to proceed,  or :? for other options

CL-USER 18 : 1 > :a

CL-USER 19 > (compile '(lambda (x) (1+ x))) ; not how compile works either!
NIL ; but no error!

I know that this is a misapplication of compile (that's the typo I
meant), but reading the Hyperspec [1], I'd have thought that the
latter should have signalled an error too. Am I misreading something?

[1] http://www.lisp.org/HyperSpec/Body/fun_compile.html

-- 
=====================
Joshua Taylor
tayloj@cs.rpi.edu, jtaylor@alum.rpi.edu

"A lot of good things went down one time,
 back in the goodle days."
 John Hartford


Re: Oddity in the compile function

Unable to parse email body. Email id is 8155

Updated at: 2020-12-10 08:43 UTC