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

dspec-equal Function

Summary

Tests two dspecs for equality as dspecs.

Package

dspec

Signature

dspec-equal dspec1 dspec2 => result

Arguments
dspec1, dspec2
Dspecs.
Values
result
A boolean.
Description

The function dspec-equal compares dspec1 and dspec2 for equality as dspecs.

Both arguments are canonicalized before the comparison.

Dspecs in different subclasses of the same namespace are dspec-equal if their names match.

Unknown dspecs are compared simply by equal.

Examples
CL-USER 44 > (dspec:dspec-equal '(deftype foo)
                                '(defclass foo))
T

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