| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.4 Method Definition
define-method (syntax)
-
add-method! target method(generic)define-methodinvokes theadd-method!generic function to handle adding the new method to a variety of possible targets. GOOPS includes methods to handle target as- a generic function (the most common case)
- a procedure
- a primitive generic (see section Extending Guile's Primitives)
By defining further methods for
add-method!, you can theoretically handle adding methods to further types of target.
