Re: Defining polymorphism vs. overloading

freek@fwi.uva.nl (Freek Wiedijk)
10 Sep 90 14:39:25 GMT

          From comp.compilers

Related articles
[10 earlier articles]
Re: Defining polymorphism vs. overloading tub!wg@relay.EU.net (1990-09-06)
Re: Defining polymorphism vs. overloading pase@orville.nas.nasa.gov (Douglas M. Pase) (1990-09-06)
Re: Defining polymorphism vs. overloading ok@goanna.cs.rmit.OZ.AU (1990-09-07)
Re: Defining polymorphism vs. overloading pardo@cs.washington.edu (1990-09-07)
Re: Defining polymorphism vs. overloading pardo@cs.washington.edu (1990-09-07)
Re: Defining polymorphism vs. overloading mmengel@cuuxb.ATT.COM (1990-09-11)
Re: Defining polymorphism vs. overloading freek@fwi.uva.nl (1990-09-10)
Re: Defining polymorphism vs. overloading pcg@cs.aber.ac.uk (Piercarlo Grandi) (1990-09-13)
Re: Defining polymorphism vs. overloading voss@suna0.cs.uiuc.edu (1990-09-14)
Re: Defining polymorphism vs. overloading stt@inmet.inmet.com (1990-09-15)
Re: Defining polymorphism vs. overloading px@fctunl.rccn.pt (1990-09-20)
Re: Defining polymorphism vs. overloading pcg@compsci.aberystwyth.ac.uk (Piercarlo Grandi) (1990-09-20)
Re: Defining polymorphism vs. overloading chip@soi.com (Chip Morris) (1990-09-15)
| List of all articles for this month |

Newsgroups: comp.compilers
From: freek@fwi.uva.nl (Freek Wiedijk)
X-Organisation: Faculty of Mathematics & Computer Science University of Amsterdam Kruislaan 409 NL-1098 SJ Amsterdam The Netherlands
X-Telex: 10262 hef nl
Keywords: polymorphism, design
Organization: Compilers Central
X-Fax: +31 20 592 5155
References: <9008310419.AA06194@karakorum.berkeley.edu> <2509@l.cc.purdue.edu> <3709@goanna.cs.rmit.oz.au>
Date: 10 Sep 90 14:39:25 GMT
X-Phone: +31 20 592 5022

ok@goanna.cs.rmit.OZ.AU (Richard A. O'Keefe) writes:
>Let me summarise that:
> DIFFERENT code for different types => OVERLOADING
> SAME code for different types => POLYMORPHISM


And what if the only difference in the code is that two different instances of
an overloaded function are being called? Is this an instance of overloading
(the code is "really" different, because two different functions are being
called), or is this an instance of polymorphism (the code "looks the same")?


In other words, is the property of being overloading "inherited" by all
functions that make use of an overloaded function? Or, can overloading
"evaporate" to polymorphism.


Freek "the Pistol Major" Wiedijk E-mail: freek@fwi.uva.nl
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.