Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Next: Generic Functions, Previous: Instances, Up: Introspection [Contents][Index]
Return the slot definition for the slot named slot-name in class class. slot-name should be a symbol.
Extract and return the slot name from slot-def.
Extract and return the slot options from 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.
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.
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.
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.
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.
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.
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.
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.
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: Generic Functions, Previous: Instances, Up: Introspection [Contents][Index]