Related articles |
---|
Polymorphism vs. overloading johnson@cs.uiuc.edu (Ralph Johnson) (1990-09-09) |
Re: Polymorphism vs. overloading norman@a.cs.okstate.edu (1990-09-12) |
Re: Polymorphism vs. overloading sakkinen@jyu.fi (1990-09-14) |
Polymorphism vs. Overloading gdevivo@conicit.ve (1994-10-22) |
Re: Polymorphism vs. Overloading jhallen@world.std.com (1994-10-22) |
Polymorphism vs. Overloading nandu@cs.clemson.edu (1994-10-27) |
Re: Polymorphism vs. Overloading norman@flaubert.bellcore.com (1994-10-24) |
Re: Polymorphism vs. Overloading ichudov@wiltel.com (1994-10-28) |
Re: Polymorphism vs. Overloading strohm@mksol.dseg.ti.com (1994-10-28) |
Re: Polymorphism vs. Overloading ryer@dsd.camb.inmet.com (1994-10-28) |
Re: Polymorphism vs. Overloading mac@coos.dartmouth.edu (1994-10-25) |
[26 later articles] |
Newsgroups: | comp.compilers |
From: | jhallen@world.std.com (Joseph H Allen) |
Keywords: | polymorphism |
Organization: | The World Public Access UNIX, Brookline, MA |
References: | 94-10-144 |
Date: | Sat, 22 Oct 1994 08:07:32 GMT |
Gabriela O. de Vivo <gdevivo@conicit.ve> wrote:
>Last week I was invited to join a Thesis (MsC) presentation.
>At some point a question raised about the exact difference between
>Polymorphism and Overloading.
The difference is purely syntactical. Calls to overloaded functions look,
well, like function calls. Calls to polymorphic functions require a dot or
'->' somewhere. Really, that's the only difference. Artificial semantic
restrictions placed by certain languages aside, you can always move the
identifier or address-expression from the left of the dot into the
parenthasis as the first argument to generate an equivelent overloaded
function call.
Next question: is there a difference between the functional language notion
of a polymorphic type and inheritance (other than functional language type
hierarchies being limited to one level)?
--
/* jhallen@world.std.com (192.74.137.5) */ /* Joseph H. Allen */
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.