|
|
|
|
|
|
|
|
The Mathematica Programmer: Polymorphism and Message Passing
|
|
|
|
|
|
Organization: | Wolfram Research, Inc. |
Department: | Kernel Technology |
|
|
|
|
|
|
|
|
|
|
|
|
Polymorphic functions are functions that can handle several different types of arguments. We look at ways of implementing such functions. First we present three LISP-like implementations using dispatch tables, data-driven programming, and message passing. Then we look at various ways of implementing objects, that is, data elements that have built in all the functions that can be applied to them. This concept provides for a high degree of modularity and lays the groundwork for an upcoming discussion of object-oriented programming.
|
|
|
|
|
|
|
|
|
|
|
|
http://www.mathematica-journal.com/issue/v2i4/
|
|