Re: Defining polymorphism vs. overloading

pardo@cs.washington.edu (David Keppel)
7 Sep 90 17:01:04 GMT

          From comp.compilers

Related articles
[8 earlier articles]
Re: Defining polymorphism vs. overloading dmw9q@uvacs.cs.Virginia.EDU (1990-09-05)
Re: Defining polymorphism vs. overloading pase@orville.nas.nasa.gov (1990-09-06)
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)
[2 later articles]
| List of all articles for this month |
Newsgroups: comp.compilers
From: pardo@cs.washington.edu (David Keppel)
Keywords: polymorphism
Organization: University of Washington, Computer Science, Seattle
References: <8133@amelia.nas.nasa.gov>
Date: 7 Sep 90 17:01:04 GMT

>[Ongoing discussion of polymorphism & overloading.]


Given two uses (`T' denotes type):


func (T) -> T
func (T, T) -> T


is `func' overloaded, polymorphic, or neither? Note that the
parameter types do not change but that the typ signature of the whole
call does change. Does the O/P/N status depend on whether the
specification is


func (T: x) -> T { ... }
func (T: x, T: y) -> T { ... }


or


func (T: x, optional T: y) -> T { ... }


?


Ada allows default parameters, while some LISPs allow both defaults
and genuinely optional parmaeters. Does that make a difference?


;-D on ( And is Eiffel's `feature' a documented bug? ) Pardo
--
pardo@cs.washington.edu
        {rutgers,cornell,ucsd,ubc-cs,tektronix}!uw-beaver!june!pardo
--


Post a followup to this message

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