Multiple selection

In directed programming object, the multiple selection (or selection of method with multiple shunting) translated the fact that all the arguments are taken into account by the compiler to select the method to be called. Example (given in Common Lisp):

(defmethod F ((A) (B B)) has); ; m1
(defmethod F ((A) (D D)) has); ; m2
 

(defclass has ()) (defclass B ()) (defclass D (B))

(let ((has (make-authority 'A)) (B (make-authority 'D))) (F has b))

The preceding code will call well the method m2 , because the compiler will have sought the method according to the types of all the arguments (from where the multiple name of shunting).

Random links:The Bridge of the Kwaï river (Romance) | Path of great excursion | Julien Absalon | Geoffroy III of Vendôme | European regional development fund | MU-2_de_Mitsubishi