The reader generic functions which simply return information associated with slot definition metaobjects are presented together here in the format described under ``Readers for Class Metaobjects.''
Each of the reader generic functions for slot definition metaobjects has the same syntax, accepting one required argument called slot, which must be a slot definition metaobject; otherwise, an error is signaled. An error is also signaled if the slot definition metaobject has not been initialized.
These generic functions can be called by the user or the implementation.
For any of these generic functions which returns a list, such lists will not be mutated by the implementation. The results are undefined if a portable program allows such a list to be mutated.
Generic Function | slot-definition-allocation |
Generic Function | slot-definition-initargs |
Generic Function | slot-definition-initform |
Generic Function | slot-definition-initfunction |
Generic Function | slot-definition-name |
Generic Function | slot-definition-type |
The specified methods for the slot definition metaobject reader generic functions are presented below.
No behavior is specified for these methods beyond that which is specified for their respective generic functions.
The following additional reader generic functions are defined for direct slot definition metaobjects.
Generic Function | slot-definition-readers |
Generic Function | slot-definition-writers |
Method | slot-definition-readers (direct-slot standard-direct-slot-definition) |
Method | slot-definition-writers (direct-slot standard-direct-slot-definition) |
Generic Function | slot-definition-location |
Method | slot-definition-location (effective-slot-definition standard-effective-slot-definition) |