home *** CD-ROM | disk | FTP | other *** search
- From: kers@hplb.hpl.hp.com (Chris Dollin)
- Date: Thu, 21 Jan 1993 09:41:41 GMT
- Subject: Re: Re: FAQ Part 1 (of 2) [ a bit of polemic ]
- Message-ID: <KERS.93Jan21094141@cdollin.hpl.hp.com>
- Organization: Hewlett-Packard Laboratories, Bristol, UK.
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!hpscit.sc.hp.com!hplextra!otter.hpl.hp.com!hpltoad!cdollin!kers
- Newsgroups: comp.object
- References: <PCG.93Jan14154212@decb.aber.ac.uk> <1993Jan15.033713.27130@netcom.com> <PCG.93Jan19231409@decb.aber.ac.uk> <1993Jan21.024452.6
- Sender: news@hplb.hpl.hp.com (Usenet News Administrator)
- Lines: 41
- In-Reply-To: Bob Hathaway's message of Thu, 21 Jan 1993 02:44:52 GMT
- Nntp-Posting-Host: cdollin.hpl.hp.com
-
- This is not a pipe, sorry, long post.
-
- In article ... Bob Hathaway <objsys@netcom.com> writes:
-
- Anyway, how about a critique of my new polymorphism def? You made a point
- I've made many times here to, and its been assimilated. I'll have a new and
- improved faq out soon, its got a great new and improved anon ftp section.
-
- What Is Polymorphism?
-
- For a Brief Answer:
- Polymorphism is the ability of an object to assume or become many different
- forms of object and for these various forms to exhibit explicit phenotype-
- like expression.
-
- This is not how I understood polymorphism was interpreted -- either in OO or
- more traditional CS. (It would, however, fit into D&D :-)
-
- Your definition makes *objects* polymorphic. I thought the usual interpretation
- was that *methods* (procedures, routines, whatever) were polymorphic. For the
- usual OO case of inclusion polymorphism, I would say something like
-
- A method is *polymorphic* in an argument A of type T if it may also be called
- with objects of type T' in the A position whenever T' is a subtype (derived
- class of, subclass of, inherits from) T.
-
- This fits Eiffel (features are redefinable) and C++ (with virtual methods
- applied to indirect objects). With a reasonable amount of goodwill about what
- ``type'' means, it also applies to Smalltalk and the Lisp-based OO systems.
-
- Since I wrote this definition down in about sixty seconds, I freely admit it's
- not perfect. But I think it's closer to what's normally understood than what
- you wrote. (It may be that you've defined a perfectly reasonable concept, and
- it's just a shame that the name is already taken.)
-
-
-
- --
-
- Regards, | "You're better off not dreaming of the things to come;
- Kers. | Dreams are always ending far too soon." - Caravan.
-