How do I see if one CLOS class is a subclass of another CLOS class?
You can get the CLASS-NAME of a class.
A class has also a type of the same name.
SUBTYPEP tests if a type is a subtype of another type.
closer-mop provides a subclassp
predicate
CL-USER> (c2mop:subclassp (find-class 'condition) (find-class 'error))
NIL
CL-USER> (c2mop:subclassp (find-class 'error) (find-class 'condition))
T
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With