next up previous

8.5 GENERIC DISPATCH

When a generic function is called, CLIPS selects the method for that generic function with highest precedence for which parameter restrictions are satisfied by the arguments. This method is executed, and its value is returned as the value of the generic function. This entire process is referred to as the generic dispatch. Below is a flow diagram summary:



                                                       The solid arrows
                                                       indicate automatic
                                                       control transfer by the
                                                       generic dispatch.

                                                       The dashed arrows
                                                       indicate control
                                                       transfer that can only
                                                       be accomplished by the
                                                       use or lack of the use
                                                       of
                                                       call-next-method or
                                                       .override-next-method



8.5.1 Applicability of Methods Summary

8.5.2 Method Precedence

8.5.3 Shadowed Methods

8.5.4 Method Execution Errors

8.5.5 Generic Function Return Value



next up previous