All Manuals > LispWorks® User Guide and Reference Manual > 31 The CLOS Package

slot-value-using-class Accessor Generic Function

Summary

Accessor generic functions that implements slot-value and (setf slot-value).

Package

clos

Signature

slot-value-using-class class object slot-name => value

(setf slot-value-using-class) value class object slot-name => value

Arguments
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.
Values
value
The value of the slot named by slot-name.
Description

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.

See also

defclass
slot-boundp-using-class
slot-makunbound-using-class


LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:25