Mathematica 9 is now available

Wolfram Library Archive


Courseware Demos MathSource Technical Notes
All Collections Articles Books Conference Proceedings
Title

The Mathematica Programmer: Polymorphism and Message Passing
Author

Roman Maeder
Organization: Wolfram Research, Inc.
Department: Kernel Technology
Journal / Anthology

The Mathematica Journal
Year: 1992
Volume: 2
Issue: 4
Page range: 47-53
Description

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.
Subjects

*Applied Mathematics > Computer Science
*Mathematica Technology > Programming
URL

http://www.mathematica-journal.com/issue/v2i4/