[Gardeners] FAQ updated

Justin Heyes-Jones justinhj at gmail.com
Fri Apr 21 12:49:13 CDT 2006


On 4/21/06, Pascal Bourguignon <pjb at informatimago.com> 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))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.lispniks.com/pipermail/gardeners/attachments/20060421/821f0889/attachment.html


More information about the Gardeners mailing list