[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SETF on functions cells?
- To: KMP at MIT-MC
- Subject: SETF on functions cells?
- From: JONL at MIT-MC (Jon L White)
- Date: Mon, 1 Dec 80 09:31:00 GMT
- Cc: (BUG LISP) at MIT-MC
- Original-date: 1 DEC 1980 0431-EST
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?