Skip to main content

standard-method

standard-method System Class

Class Precedence List:

standard-method, method, standard-object, t

Description:

The class standard-method is the default class of methods defined by the defmethod and defgeneric forms.

Expanded Reference: standard-method

The standard-method System Class

standard-method is the default class of method objects created by defmethod. It is a subclass of method.

(defgeneric describe-it (obj))

(defmethod describe-it ((obj number))
(format nil "~A is a number" obj))

(typep (first (generic-function-methods #'describe-it))
'standard-method)
;; => T