Next: Effective Method Procedure, Previous: Generic Procedure Datatype, Up: Generic Procedures
Methods are stored in generic procedures. When a generic procedure is
called, it selects a subset of its stored methods (using
method-applicable?
), and arranges to invoke one or more of the
methods as necessary. The following definitions provide the means for
adding methods to and removing them from a generic procedure.
Adds method to generic-procedure. If generic-procedure already has a method with the same specializers as method, then the old method is discarded and method is used in its place.
Removes method from generic-procedure. Does nothing if generic-procedure does not contain method.