其實,我不完全理解SETF的使用在defun定義:關於「defun」中的「setf」?
(defun cookies-out* (&optional (reply *reply*))
"Returns an alist of the outgoing cookies associated with the REPLY object REPLY."
(cookies-out reply))
(defun (setf cookies-out*) (new-value &optional (reply *reply*))
"Sets the alist of the outgoing cookies associated with the REPLY object REPLY."
(setf (cookies-out reply) new-value))
我想它重新定義了功能#「餅乾出*,不是嗎?如果是這樣,那麼#'cookies-out*
將是一個多態函數。
真誠!
搜索 「SETF擴展」,並期待在[這](http://www.chemie.fu-berlin.de/chemnet/use/info/cl/cl_4.html#SEC19)。 – Daimrod 2012-01-11 09:41:20