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

NextPrevUpTopContentsIndex

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 .

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

LispWorks User Guide and Reference Manual - 21 Dec 2011

NextPrevUpTopContentsIndex