[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Lisp Test
- To: "George J. Carrette" <GJC@MIT-MC.ARPA>
- Subject: Lisp Test
- From: "Scott E. Fahlman" <Fahlman@C.CS.CMU.EDU>
- Date: Mon, 23 Sep 1985 01:46:00 -0000
- Cc: common-lisp@SU-AI.ARPA
- In-reply-to: Msg of 22 Sep 1985 21:15-EDT from George J. Carrette <GJC at MIT-MC.ARPA>
- Sender: FAHLMAN@C.CS.CMU.EDU
[1] (let ((x (list nil))) (car x)) nil
[2] (let ((x (list nil))) (setf (car x) 5) (car x)) 5
[3] (flet ((g () 5)) (g)) 5
[4] (flet ((g () 5)) (setf #'g #'(lambda () 7)) (g)) error
The error is "FUNCTION not a SETF-able form." or words to that effect.
If in 4 you meant to setf (symbol-function 'g), then the answer is 5.
-- Scott