Next: , Previous: Customizing, Up: Top

11 Introspection

Introspection permits a programmer to peek at the contents of a class without any previous knowledge of that class. While EIEIO implements objects on top of vectors, and thus everything is technically visible, some functions have been provided. None of these functions are a part of CLOS.

— Function: object-slots obj

Return the list of public slots for obj.

— Function: class-slot-initarg class slot

For the given class return an :initarg associated with slot. Not all slots have initargs, so the return value can be nil.