[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: GJC@MIT-MC.ARPA
- Subject: Lisp Test
- From: Tim McNerney <TIM@MIT-MC.ARPA>
- Date: Wed, 25 Sep 85 02:59:30 EDT
- Cc: Common-Lisp@SU-AI.ARPA
- In-reply-to: Msg of Sun 22 Sep 85 21:15:09 EDT from George J. Carrette <GJC at MIT-MC.ARPA>
Date: Sun, 22 Sep 85 21:15:09 EDT
From: George J. Carrette <GJC at MIT-MC.ARPA>
 (flet ((g () 5)) (setf #'g #'(lambda () 7)) (g))
I had been wondering about this for a while. I thought that FUNCTION
might be magic, but (SETF (FUNCTION ...) ...) does not appear to be
defined in CLtL. Perhaps you meant to use SYMBOL-FUNCTION instead.
If so, it would indeed make a good teaser for testing to see if people
had carefully read page 90.
Does Common Lisp provide any way to side effect "lexical function cells"
such as G above?
- Lisp Test
- From: David A. Moon <Moon@SCRC-STONY-BROOK.ARPA>