The Mathematica Journal


About the Journal
Current Issue
Editorial Policy
Back Issues
Contact Information


The Mathematica Programmer

Polymorphism and Message Passing

Volume 2, Issue 4
Fall 1992
Roman E. Maeder

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

About Mathematica 
© Wolfram Media, Inc. All rights reserved.