Skip to main content

structure-object

structure-object Class

Class Precedence List:

structure-object, t

Description:

The class structure-object is an instance of structure-class and is a superclass of every class that is an instance of structure-class except itself, and is a superclass of every class that is defined by defstruct.

See Also:

defstruct, Section 2.4.8.13 (Sharpsign S), Section 22.1.3.12 (Printing Structures)

Expanded Reference: structure-object

The structure-object Class

structure-object is the superclass of all structures defined by defstruct (when no :type option is used). Every structure instance is of type structure-object.

(defstruct point x y)
=> POINT

(typep (make-point) 'structure-object)
=> T

Subtype Relationships

(subtypep 'point 'structure-object)
;; => T
;; => T

(subtypep 'structure-object t)
=> T
=> T