[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
8.8.3 Slots
- procedure: class-slot-definition class slot-name
Return the slot definition for the slot named slot-name in class class. slot-name should be a symbol.
- procedure: slot-definition-allocation slot-def
Extract and return the slot allocation option from slot-def. This is the value of the
#:allocation
keyword (see section allocation), or#:instance
if the#:allocation
keyword is absent.
- procedure: slot-definition-getter slot-def
Extract and return the slot getter option from slot-def. This is the value of the
#:getter
keyword (see section getter), or#f
if the#:getter
keyword is absent.
- procedure: slot-definition-setter slot-def
Extract and return the slot setter option from slot-def. This is the value of the
#:setter
keyword (see section setter), or#f
if the#:setter
keyword is absent.
- procedure: slot-definition-accessor slot-def
Extract and return the slot accessor option from slot-def. This is the value of the
#:accessor
keyword (see section accessor), or#f
if the#:accessor
keyword is absent.
- procedure: slot-definition-init-value slot-def
Extract and return the slot init-value option from slot-def. This is the value of the
#:init-value
keyword (see section init-value), or the unbound value if the#:init-value
keyword is absent.
- procedure: slot-definition-init-form slot-def
Extract and return the slot init-form option from slot-def. This is the value of the
#:init-form
keyword (see section init-form), or the unbound value if the#:init-form
keyword is absent.
- procedure: slot-definition-init-thunk slot-def
Extract and return the slot init-thunk option from slot-def. This is the value of the
#:init-thunk
keyword (see section init-thunk), or#f
if the#:init-thunk
keyword is absent.
- procedure: slot-definition-init-keyword slot-def
Extract and return the slot init-keyword option from slot-def. This is the value of the
#:init-keyword
keyword (see section init-keyword), or#f
if the#:init-keyword
keyword is absent.
- procedure: slot-init-function class slot-name
Return the initialization function for the slot named slot-name in class class. slot-name should be a symbol.
The returned initialization function incorporates the effects of the standard
#:init-thunk
,#:init-form
and#:init-value
slot options. These initializations can be overridden by the#:init-keyword
slot option or by a specializedinitialize
method, so, in general, the function returned byslot-init-function
may be irrelevant. For a fuller discussion, see init-value.
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on April 20, 2013 using texi2html 5.0.