DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(goops.info.gz) Invoking Generic Functions

Info Catalog (goops.info.gz) Adding Methods to Generic Functions (goops.info.gz) Reference Manual (goops.info.gz) Redefining a Class
 
 Invoking Generic Functions
 ==========================
 
 When a variable with a generic function definition appears as the first
 element of a list that is being evaluated, the Guile evaluator tries to
 apply the generic function to the arguments obtained by evaluating the
 remaining elements of the list.  [ *fixme* How do I put this in a more
 Schemely and less Lispy way? ]
 
 Usually a generic function contains several method definitions, with
 varying degrees of formal parameter specialization (
 define-method Basic Method Definition.).  So it is necessary to sort
 these methods by specificity with respect to the supplied arguments,
 and then apply the most specific method definition.  Less specific
 methods may be applied subsequently if a method that is being applied
 calls `next-method'.
 

Menu

 
* Determining Which Methods to Apply
* Handling Invocation Errors
 
Info Catalog (goops.info.gz) Adding Methods to Generic Functions (goops.info.gz) Reference Manual (goops.info.gz) Redefining a Class
automatically generated byinfo2html