问题
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.
回答1:
How about
(mapcar #'slot-definition-name (class-slots class))
来源:https://stackoverflow.com/questions/40884764/lisp-get-all-slot-names-from-an-class-instance