Accessor generic functions that implements slot-value and (setf slot-value)
.
clos
slot-value-using-class class object slot-name => value
(setf slot-value-using-class) value class object slot-name => value
class⇩ |
A class metaobject, the class of object. |
object⇩ |
An object. |
slot-name⇩ |
A slot name. |
value⇩ |
The value of the slot named by slot-name. |
value⇩ |
The value of the slot named by slot-name. |
The accessor generic function slot-value-using-class
implements the slot-value and (setf slot-value)
functions.
The implementation and information about class, object and value is as described in AMOP, except that the third argument slot-name is the slot name, and not a slot definition metaobject. The primary methods specialize on t
for this argument.
Note: by default, standard slot accessors, and access by slot-value to an argument of a method where the specializer is a class defined by defclass, are optimized to not call slot-value-using-class
. This can be overridden with the :optimize-slot-access
class option. See defclass for details.
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:25