On 4/21/06, Pascal Bourguignon <[EMAIL PROTECTED]> wrote:
... function.  But you can have a variable number of arguments:


It's probably worth pointing out also that you can have generic functions that work on multiple types.

For example, in C++ you could have a draw function for each class that can be drawn, whereas in lisp you could have a draw function for each combination of drawable object and target...

(defmethod draw((obj triangle) (target screen))
(defmethod draw((obj triangle) (target printer))


_______________________________________________
Gardeners mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/gardeners

Reply via email to