Next: , Previous: , Up: Introspection   [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-name slot-def

Extract and return the slot name from slot-def.

procedure: slot-definition-options slot-def

Extract and return the slot options from slot-def.

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 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 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 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 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 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 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 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 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 specialized initialize method, so, in general, the function returned by slot-init-function may be irrelevant. For a fuller discussion, see init-value.


Next: , Previous: , Up: Introspection   [Contents][Index]