Warning: This is the manual of the legacy Guile 2.2 series. You may want to read the manual of the current stable series instead.
Next: Accessing Slots, Previous: Slots, Up: Introspection [Contents][Index]
A generic function is an instance of the <generic>
class, or of a
subclass of <generic>
. The definition of the <generic>
class has slots that are used to describe the properties of a generic
function.
Return the name of generic function gf.
Return a list of the methods of generic function gf. This is the
value of gf’s methods
slot.
Similarly, a method is an instance of the <method>
class, or of a
subclass of <method>
; and the definition of the <method>
class has slots that are used to describe the properties of a method.
Return the generic function that method belongs to. This is the
value of method’s generic-function
slot.
Return a list of method’s formal parameter specializers . This is
the value of method’s specializers
slot.
Return the procedure that implements method. This is the value of
method’s procedure
slot.
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)))