[Next] [Previous] [Up] [Top] [Contents] [Index]

Method combination

The primary method

The primary method applied to the instance is always the most specific method the generic function has for the arguments it has been given. When a generic function has a method for an instance, the instance's method is used. If not, CLOS looks up applicable methods for the instance's direct superclass, then for that superclass's superclass, and so on. As soon as one applicable method is found, the search stops and that method is applied to the instance. (If there is no applicable primary method, the function signals an error.)


Gettmg Started with MCL - 19 OCT 1996
[Next] [Previous] [Up] [Top] [Contents] [Index]

Generated with Harlequin WebMaker