Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!think!barmar
From: barmar@think.COM (Barry Margolin)
Newsgroups: comp.lang.lisp
Subject: Re: SETF methods
Message-ID: <32895@think.UUCP>
Date: 5 Dec 88 17:24:52 GMT
References: <613@cnetlu.UUCP> <3761@pt.cs.cmu.edu>
Sender: news@think.UUCP
Reply-To: barmar@kulla.think.com.UUCP (Barry Margolin)
Organization: Thinking Machines Corporation, Cambridge MA, USA
Lines: 42
In article <3761@pt.cs.cmu.edu> ccm@a.gp.cs.cmu.edu (Christopher McConnell) writes:
>The CLOS spec is specifying how to define setf methods (as in CLOS
>methods with specializers) not the normal CL setf methods. So, you
>have to say (defmethod (setf woof) (value (object blah))). You use
>define-setf-method to define normal setf methods.
No, that's not the answer. The calling sequence for such a method
would be
(setf )
and that is not the normal SETF syntax. CLOS needs a way for a class
to customize the behavior of
(setf (