lispclasscommon-lispclosmop

Test if a class is a subclass of another class in common lisp


How do I see if one CLOS class is a subclass of another CLOS class?


Solution

  • 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.