Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!snorkelwacker!mintaka!spdcc!esegue!compilers-sender From: freek@fwi.uva.nl (Freek Wiedijk) Newsgroups: comp.compilers Subject: Re: Defining polymorphism vs. overloading Keywords: polymorphism, design Message-ID: <1250@carol.fwi.uva.nl> Date: 10 Sep 90 14:39:25 GMT References: <9008310419.AA06194@karakorum.berkeley.edu> <2509@l.cc.purdue.edu> <3709@goanna.cs.rmit.oz.au> Sender: compilers-sender@esegue.segue.boston.ma.us Reply-To: freek@fwi.uva.nl (Freek Wiedijk) Organization: Compilers Central Lines: 18 Approved: compilers@esegue.segue.boston.ma.us X-Organisation: Faculty of Mathematics & Computer Science University of Amsterdam Kruislaan 409 NL-1098 SJ Amsterdam The Netherlands X-Telex: 10262 hef nl X-Fax: +31 20 592 5155 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 -- Send compilers articles to compilers@esegue.segue.boston.ma.us {ima | spdcc | world}!esegue. Meta-mail to compilers-request@esegue.