manpagez: man pages & more
info goops
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.10.5 Generic Function Methods

primitive procedure: method-generic-function method

Return the generic function that method belongs to. This is the value of the method metaobject's generic-function slot.

primitive procedure: method-specializers method

Return a list of method's formal parameter specializers . This is the value of the method metaobject's specializers slot.

primitive procedure: method-procedure method

Return the procedure that implements method. This is the value of the method metaobject's procedure slot.

generic: method-source
method: method-source (m <method>)

Return an expression that prints to show the definition of method m.

 
(define-generic cube)

(define-method (cube (n <number>))
  (* n n n))

(map method-source (generic-function-methods cube))
⇒
((method ((n <number>)) (* n n n)))

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.