All Manuals > LispWorks® User Guide and Reference Manual > 35 The DSPEC Package

dspec-subclass-p Function

Summary

Tests whether one dspec class is a subclass of another.

Package

dspec

Signature

dspec-subclass-p class1 class2 => result

Arguments
class1, class2
Symbols naming dspec classes.
Values
result
A boolean.
Description

The function dspec-subclass-p determines whether the dspec class denoted by class1 is a subclass of that denoted by class2.

Examples
CL-USER 55 > (dspec:dspec-subclass-p 'defmacro 'type)
NIL
 
CL-USER 56 > (dspec:dspec-subclass-p 'defmacro 
                                     'function)
T

LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:33