[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
change to instance structure protocol
- To: email@example.com, Moon@stony-brook.scrc.symbolics.com
- Subject: change to instance structure protocol
- From: Scott Cyphers <Cyphers@jasper.scrc.symbolics.com>
- Date: Mon, 3 Dec 1990 08:49:00 PST
- Cc: firstname.lastname@example.org, MOP.PARC@xerox.com
- In-reply-to: <9011292236.AA01467@caligula>
Date: Thu, 29 Nov 1990 17:36 EST
From: Jon L White <email@example.com>
re: In Symbolics' implementation notinline SLOT-VALUE
does not call SLOT-VALUE-USING-CLASS for the standard metaclass.
I thought it was supposed to, so that the user could hang hooks.
Or, are you simly referring to an optimization of the notinline
case when there are no user-defined methods?
That's right. When SLOT-VALUE gets an instance, it loads a special slot
in the instance information. This slot contains a special table of slot
names which can be accessed quickly in the instance. We do a blindingly
fast linear search for the slot name in the table. If it is found, the
offset in the table is the offset of the slot in the instance (or
something like that). If a class has shared slots, the shared slots are
left out of the table. The bug (which could be fixed easily enough) is
that you also have to leave out slot names for any slots which are
affected by a method on SLOT-VALUE-USING-CLASS. There are a number of
simple ways that this mechanism could be extended.
-- JonL --