[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
list of proposed changes to Common Lisp
Date: Sat, 14 Dec 1985 00:46 EST
From: Rob MacLachlan <RAM@C.CS.CMU.EDU>
(*) 107 Clarify that GET-SETF-METHOD and GET-SETF-METHOD-MULTIPLE-VALUE do
not perform macro-expansion on the given form ...
This won't work, as it prohibits defining setf methods for macros.
GET-SETF-METHOD needs the environment so that it can expand macros one
level at a time, checking if the result has a setf method. I also
suggest that the environment argument not be optional, as any user
code which doesn't supply it is surely broken.
Right you are.
312 It should be explicitly noted somewhere that defstruct copiers
work on structures which are a subtype by inclusion, e.g. COPY-PERSON
works on an astronaut. This is a natural consequence of the subtype
semantics of inclusion, but isn't necessarily obvious to pea-brained
implementors.
Presumably COPY-PERSON, when applied to an ASTRONAUT, returns something
that is a PERSON but not an ASTRONAUT; that is, it makes a copy of just
the PERSON part of an ASTRONAUT?
--Guy