🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #84

Re: With-Accessors again

#84
From: Gregor Kiczales
Date: Wed, 15 Apr 1992 18:05
23 lines
1655 bytes
    From: Guy@AVON.sltd.dialnet.symbolics.COM (Guy Footring)
    Newsgroups: comp.lang.clos
    Subject: With-Accessors again
    Date: 13 Apr 92 16:56:00 GMT

    "The macro with-accessors can be used to establish a lexical environment
    in which specified slots are lexically available through their accessors
    as if they were variables.  The macro with-accessors invokes the
    appropriate accessors to access the specified slots."

I think what is going on here is that, in some sense, the word accessors
should not appear in this passage.  (In this same sense, WITH-ACCESSORS
is misnamed.)  Or maybe it should appear, but it isn't the same as the
technical term that means "automatically generated methods that
read/write slots."  What with-accessors does is translate "lexical
variable syntax" into "calling a simple `accessor' function syntax."

    Would the following contrived example (note the complete lack of slots) 
    be 'legal' CLOS code?

I believe your contrived example is legal code and I would be surprised
if any implementation didn't make it work.
Technical Details
Message-ID: <GREGOR.92Apr15110544@tracer-bullet.parc.xerox.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!bionet!parc!gregor
References: <19920413165619.5.GUY@AVON.sltd.dialnet.symbolics.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!uwm.edu!bionet!parc!gregor
From: gregor@parc.xerox.com (Gregor Kiczales)
Newsgroups: comp.lang.clos
Subject: Re: With-Accessors again
Message-ID: <GREGOR.92Apr15110544@tracer-bullet.parc.xerox.com>
Date: 15 Apr 92 18:05:44 GMT
Article-I.D.: tracer-b.GREGOR.92Apr15110544
References: <19920413165619.5.GUY@AVON.sltd.dialnet.symbolics.com>
Sender: news@parc.xerox.com
Organization: Xerox Palo Alto Research Center
Lines: 23
In-Reply-To: Guy@AVON.sltd.dialnet.symbolics.COM's message of 13 Apr 92 16:56:00 GMT