Re: OON: going from sequential to parallel through polymorphism

From: Roscoe A Bartlett (roscoe@andrew.cmu.edu)
Date: Mon Sep 28 1998 - 12:15:05 EST


On Mon, 28 Sep 1998, Eric NOULARD wrote:

> 2) As far as I know this problem is a "multiple dispatch problem".
> If Matrix::apxy(...) has only 1 argument we can use the Visitor
> pattern to solve it. Does anyone knows design pattern that solves
> the multiple dispatch problem?
> I did one of myself but may be others have already done this job.

Look at item #31 (Implementing Multiple Dispatch) in Scott Meyers' book
"More Effective C++." He devotes 25 pages to the problem of
multiple-dispatch in C++ and on various techniques to solve it in C++. He
also mentions CLOS (Common Lisp Object System) as a language that has
built-in support for multiple-dispatch.

 --------------------------------------
| Roscoe Bartlett |
| Ph.D. student |
| Department of Chemical Engineering |
| Carnegie Mellon University |
| email: roscoe@andrew.cmu.edu |
 --------------------------------------



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 03:20:06 EST