home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!charon.amdahl.com!netcomsv!netcom.com!objsys
- From: Bob Hathaway <objsys@netcom.com>
- Subject: Re: FAQ Part 1 (of 2) [ a bit of polemic ]
- Message-ID: <1993Jan23.065025.28526@netcom.com>
- Sender: objsys@netcom.com (Object Systems)
- Organization: Object Systems
- References: <PCG.93Jan14154212@decb.aber.ac.uk> <KERS.93Jan21100655@cdollin.hpl.hp.com>
- Date: Sat, 23 Jan 1993 06:50:25 GMT
- Lines: 21
-
- In article <KERS.93Jan21100655@cdollin.hpl.hp.com>, kers@hplb.hpl.hp.com (Chris Dollin) writes:
- > A method is *parametrically polymorphic* in an argument A if it is
- > independant of the type of A and so can be applied with values of
- > any type in the A argument.
- >
- >In Eiffel, this is genericity; in C++, it can be obtained using template
- >functions (the argument A must then be one of the template argument types).
- >Dynamically typed (or, using Piercarlo's term, latently typed) languages
- >usually have this as an automatic property.
- >
- >I don't know if it's easy to unify the two kinds of polymorphism in a
- >single framework. Even if so, it might be useful to distinguish them.
-
- With a type parameter (whether implicit or explicit) you get checking,
- without it you don't; period. The term "generic" has been used to refer
- to the static case.
-
- bob
- objsys@netcom.com
-
- P.S. Any other questions?
-