[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
MACROEXPANDED not working with SETF (??)
- To: JONL at MIT-MC
- Subject: MACROEXPANDED not working with SETF (??)
- From: Robert W. Kerns <RWK at MIT-MC>
- Date: Thu, 30 Oct 80 00:07:00 GMT
- Cc: BUG-LISP at MIT-MC, GJC at MIT-MC
- Original-date: 29 October 1980 19:07-EST
Another solution would be for SETF to be less persistant with it's
MACROEXPANDEDness. Basically, introduce a MACROEXPANDED-SETF form.
(MACROEXPANDED-SETF <def-count> <expanded> <original>)
<def-count> is taken from DEFMACRO-COUNTER, which is incremented whenever a
DEFMACRO or DEFSETF is done. When MACROEXPANDED-SETF is EVAL'd, it compares
<def-count> with the global DEFMACRO-COUNTER, and if anything has been
redefined, it re-expands. Redefinitions are rare enough to make this an
acceptable cost.