The generic function slot-definition-readers
gets an argument that must be a direct-slot-definition
. If an object is an instance of a class that inherits from another class how can I get hold of the readers of all the effective-slots of the object? Do I manually have to traverse the tree and call slot-definition-readers
on the result of class-direct-slots
in each superclass, gathering the results, or is there another way that I am not aware of?
相关问题
- Drakma and Dexador both fails at USocket call whil
- Forming Lisp code to task — related to flatten lis
- clisp 2.49: asdf cannot find asd
- Lisp web tales: How to fix the blogdemo example (C
- STEP macro does not work in Clozure CL
相关文章
- Does learning one Lisp help in learning the other?
- Common Lisp: Why does my tail-recursive function c
- How do I write a macro-defining macro in common li
- How can I unintern a qualified method?
- Changing the nth element of a list
- Is a “transparent” macrolet possible?
- comma-comma-at in Common Lisp
- Updating to ASDF 3.x in CLISP
This "community wiki" answer is here to provide an implementation of this feature. What follows uses no destructive operation (NCONC, MAPCAN) since an implementation might return an internal list without copying it. MAPPEND is imported from alexandria, and MOP operations can be imported from closer-mop.