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

canonicalize-dspec Function

Summary

Returns the canonical form for a dspec.

Package

dspec

Signature

canonicalize-dspec dspec => canonical-dspec

Arguments
dspec
A dspec.
Values
canonical-dspec
A canonical dspec.
Description

The function canonicalize-dspec checks that dspec is syntactically correct and returns its canonical form if dspec is valid. Otherwise canonicalize-dspec returns nil.

canonicalize-dspec expands dspec aliases.

Examples
CL-USER 12 > (dspec:canonicalize-dspec 'foo)
(FUNCTION FOO)
 
CL-USER 13 > (dspec:canonicalize-dspec '(defmethod bar (list t)))
(METHOD BAR (LIST T))
See also

define-dspec-alias


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