Search code examples
common-lispclos

LISP: Get all slot names from an class instance


I need to make a window with the properties of a class (its slot-values).

It would be something like describe function.

My question is: How do I get all the slots-name for that class?

I wasn't able to find anything about it, only the describe function.


Solution

  • How about

    (mapcar #'slot-definition-name (class-slots class))