[comp.lang.lisp] Survey question

muller@bu-cs.BU.EDU (Robert Muller) (11/25/88)

Informal survey question for LISPers and Schemers:

 What type of object is read in:
----

> (read)
(lambda (x) x)

----

alex@umbc3.UMD.EDU (Alex S. Crain) (11/25/88)

In article <26250@bu-cs.BU.EDU> muller@bu-cs.BU.EDU (Robert Muller) writes:

> What type of object is read in:

>> (read)
>(lambda (x) x)

	A list, specifically (LAMBDA . ((X . nil) . (X . nil)))
-- 
					:alex.
					Systems Programmer
nerwin!alex@umbc3.umd.edu		UMBC
alex@umbc3.umd.edu

sokolov@mit-amt (Michael Sokolov) (11/27/88)

>(setq foo (read))
>(lambda (x) x)

	I think the question was what type of object is foo bound to?
I think it is basically just a list. (fboundp 'foo) returns nil.
however, (funcall foo 1) does return 1.  Accordingly, (functionp foo)
returns t. I discovered that (functionp 'bar) also returns t, in spite
of the fact that bar was previously unbound: anyone know why?

MS