You should not usually call
dspec:record-definition
, since all the system-provided definers call it.
However, for new classes of definition which you add with
dspec:define-dspec-class
, you should call
dspec:record-definition
for dspecs in their new classes, as shown in Complete example of a top-level dspec class.