Newsgroups: comp.object,comp.lang.smalltalk,comp.lang.c++,comp.lang.misc
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!gatech!howland.reston.ans.net!xlink.net!slsv6bt!news
From: kanze@lts.sel.alcatel.de (James Kanze US/ESC 60/3/141 #40763)
Subject: Re: Types, types: static vs. dynamic -- classification
In-Reply-To: akv@srl06.cacs.usl.edu's message of 02 Oct 1995 06:51:45 GMT
Message-ID: <KANZE.95Oct4191049@slsvgqt.lts.sel.alcatel.de>
Lines: 27
Sender: news@lts.sel.alcatel.de
Organization: SEL
References: <BLUME.95Sep18171508@salomon.cs.princeton.edu>
	<1995Sep21.213734.1114@schbbs.mot.com>
	<KANZE.95Sep25170254@slsvhdt.lts.sel.alcatel.de>
	<AKV.95Oct2015145@srl06.cacs.usl.edu>
Date: 04 Oct 1995 18:10:49 GMT
Xref: glinda.oz.cs.cmu.edu comp.object:38984 comp.lang.smalltalk:28989 comp.lang.c++:152506 comp.lang.misc:23287

In article <AKV.95Oct2015145@srl06.cacs.usl.edu>
akv@srl06.cacs.usl.edu (Anil Vijendran) writes:

|> >>>>> On 25 Sep 1995 16:02:54 GMT, kanze@lts.sel.alcatel.de (James
|> Kanze US/ESC 60/3/141 #40763) said:

|>     James> Actually, C++ has both static and dynamic polymorphism.
|>     James> The static polymorphism is implemented using templates, and
|>     James> the dynamic using virtual functions.  Thus, for example,
|>     James> the STL function ``sort'' is polymorphic, although the
|>     James> polymorphism is resolved at compile time (staticly).

|> Isn't function overloading a form of static polymorphism?

If you say so:-).  Polymorphism is one of those terms where everyone
seems to have their own definition.  I've always considered (C++'s)
function overloading as more a case of extended function names; the
parameter types are, in fact, considered as part of the name.  But
this is probably influenced by what I know about how compilers
actually implement function overloading (i.e.: name mangling).
-- 
James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils en informatique industrielle --
                              -- Beratung in industrieller Datenverarbeitung


