Skip to main content

standard-class

standard-class System Class

Class Precedence List:

standard-class, class, standard-object, t

Description:

The class standard-class is the default class of classes defined by defclass.

Expanded Reference: standard-class

The standard-class Metaclass

standard-class is the default metaclass for classes defined with defclass.

(defclass my-widget () ())
==> #<STANDARD-CLASS MY-WIDGET>

(typep (find-class 'my-widget) 'standard-class)
=> T

Distinguished from Other Metaclasses

;; User-defined classes have metaclass standard-class:
(class-of (find-class 'my-widget))
;; ==> #<STANDARD-CLASS STANDARD-CLASS>

;; Structure classes have metaclass structure-class:
(defstruct my-struct a b)
(class-of (find-class 'my-struct))
;; ==> #<STANDARD-CLASS STRUCTURE-CLASS>