[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Macrolet and setf
- To: franz!ficl!jkf@ucbarpa.Berkeley.EDU (John Foderaro)
- Subject: Macrolet and setf
- From: "Scott E. Fahlman" <Fahlman@C.CS.CMU.EDU>
- Date: Sun, 23 Nov 1986 03:51:00 -0000
- Cc: COMMON-LISP@SU-AI.ARPA
- In-reply-to: Msg of 22 Nov 1986 21:52-EST from franz!ficl!jkf at ucbarpa.Berkeley.EDU (John Foderaro)
- Sender: FAHLMAN@C.CS.CMU.EDU
>> (defun abc (n)
>> (macrolet ((mmm (z) `(gethash ,z *bob*)))
>> (setf (mmm n) 5)))
I believe that the preceeding should be permitted, but it requires that
get-setf-method be permitted to take a second, environment, argument.
Such a change may have already been proposed.
You're right, that's what it takes, and this change has already been
proposed. It seemed pretty clear to everyone that this change was
required in order for SETF of macros to work properly, so a number of
implementations went ahead and added it (as an optional arg), even
though there has been no mechanism whereby this change could be adopted
officially.
-- Scott