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

NextPrevUpTopContentsIndex

slot-value-using-class

Generic Function
Summary

Implements 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.

Values

value

The value of the slot named by slot-name.

Description

The generic function slot-value-using-class implements the behavior of the slot-value function.

The implementation is as described in AMOP, except that the third argument 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 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 - 13 Feb 2015

NextPrevUpTopContentsIndex