[ < ] | [ > ] | [ << ] | [ 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)))