[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SETF on functions cells?



    Date: 11 November 1980 17:37-EST
    From: Kent M. Pitman <KMP at MIT-MC>
    Shouldn't (SETF #'ADD3 #'(LAMBDA (X) (PLUS X 3))) work? It says that
    (FUNCTION ADD3) is an obscure format... 
Shouldn't this intention be written as
	(SETF (FSYMEVAL 'ADD3) #'(LAMBDA (X) (PLUS X 3)))
which would get expanded into
	(FSET 'ADD3 #'(LAMBDA (X) (PLUS X 3)))
On the other hand, if #'ADD3 is considered to be fully equivalent to
(FSYMEVAL 'ADD3), then maybe both should do the expansion?  Such
equivalence is true in NIL, but I'm not sure how MacLISP could support
it 100% correctly.  Also, what does LISPM do?