🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #107

Re: Accessors specified in a defclass don't seem to use slot-value in Lucid

#107
From: Trent Lange
Date: Thu, 13 Aug 1992 09:17
16 lines
1411 bytes
In article <9208122211.AA15742@quaestor> jmg@inference.COM (Jeff Greif) writes:
>>>>>> gregor@parc.xerox.com (Gregor Kiczales) writes:
>
>-> 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.

Indeed, in the current version of PCL (July 92 PCL, and also in March 92 PCL),
accessor methods effectively go through slot-value-using-class without
any performance penalty at all in the normal case.  The accessor methods
simply use the fastest possible slot-accessing code (directly accessing
the slot from the index stored in a closure variable).  If somebody later
adds a slot-value-using-class method, the appropriate accessor methods are
updated to use the new slot-value-using-class effective method.

- Trent Lange
Technical Details
Message-ID: <1992Aug13.091744.20315@cs.ucla.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!lange
References: <GREGOR.92Aug12133220@tracer-bullet.parc.xerox.com> <9208122211.AA15742@quaestor>

Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.clos
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!ames!elroy.jpl.nasa.gov!ucla-cs!lanai.cs.ucla.edu!lange
From: lange@lanai.cs.ucla.edu (Trent Lange)
Subject: Re: Accessors specified in a defclass don't seem to use slot-value in Lucid
Message-ID: <1992Aug13.091744.20315@cs.ucla.edu>
Sender: usenet@cs.ucla.edu (Mr Usenet)
Nntp-Posting-Host: lanai.cs.ucla.edu
Organization: UCLA Artificial Intelligence Laboratory
References: <GREGOR.92Aug12133220@tracer-bullet.parc.xerox.com> <9208122211.AA15742@quaestor>
Date: Thu, 13 Aug 92 09:17:44 GMT
Lines: 17