Article View: comp.lang.clos
Article #101Re: Accessors specified in a defclass don't seem to use slot-value in Lucid
From: Gregor Kiczales
Date: Wed, 12 Aug 1992 13:32
Date: Wed, 12 Aug 1992 13:32
30 lines
1993 bytes
1993 bytes
In article <9208111754.AA06971@jupiter.risc.rockwell.com> kal@jupiter.risc.rockwell.com (Kevin Lovette) writes: From: kal@jupiter.risc.rockwell.com (Kevin Lovette) Date: 11 Aug 92 17:54:14 GMT I have some code that uses (setf slot-value-using-class) to trigger the update of windows on my display. When I ported this code from Franz to Lucid it stopped working. It turns out that accessors in Franz are implemented with slot-value, but in lucid accessors seem to directly access the slot without calling slot-value. Is there a finalized CLOS MOP specification yet? If so, what does it specify? The MOP specification is available via two means. The specification alone is available by anonymous FTP from parcftp.xerox.com. It is also available, along with conceptual material about MOPs, as chapters 5 and 6 of `The Art of the Metaobject Protocol,' by Gregor Kiczales, Jim des Rivieres and Daniel G. Bobrow. MIT Press. ISBN # 0-262-61074-4. As it turns out, the specification never comes right out and says that automatically generated accessor methods must call SLOT-VALUE-USING-CLASS and (SETF SLOT-VALUE-USING-CLASS). But that is certainly what was intended. Otherwise, code like your's becomes difficult (perhaps even impossible) to write. The current version of PCL, unless something has changed I don't know about, supports this. It is pretty easy to do without undue performance penalty. Gregor
Technical Details
Message-ID:
<GREGOR.92Aug12133220@tracer-bullet.parc.xerox.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!decwrl!parc!gregorReferences:
<9208111754.AA06971@jupiter.risc.rockwell.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos Path: arc1-ca.pugleaf.net!sparky!uunet!decwrl!parc!gregor From: gregor@parc.xerox.com (Gregor Kiczales) Subject: Re: Accessors specified in a defclass don't seem to use slot-value in Lucid In-Reply-To: kal@jupiter.risc.rockwell.com's message of 11 Aug 92 17:54:14 GMT Message-ID: <GREGOR.92Aug12133220@tracer-bullet.parc.xerox.com> Sender: news@parc.xerox.com Organization: Xerox Palo Alto Research Center References: <9208111754.AA06971@jupiter.risc.rockwell.com> Date: 12 Aug 92 13:32:20 Lines: 30