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: Re: FAQ Part 1 (of 2) [ polymorphism or latent typing? ]
- Message-ID: <1993Jan23.062235.25970@netcom.com>
- Sender: objsys@netcom.com (Object Systems)
- Organization: Object Systems
- References: <PCG.93Jan20002119@decb.aber.ac.uk> <1993Jan22.004420.16674@netcom.com> <KERS.93Jan22101155@cdollin.hpl.hp.com>
- Date: Sat, 23 Jan 1993 06:22:35 GMT
- Lines: 48
-
- In article <KERS.93Jan22101155@cdollin.hpl.hp.com> kers@hplb.hpl.hp.com (Chris Dollin) writes:
- >In article ...Bob Hathaway <objsys@netcom.com> writes:
- >
- > Since Strachey defined parametrically polymorphic
- > functions (functions parameterized by objects of different types), the
- > formal parameters assume many forms and can be referred to as polymorphic.
- >
- >Yes; and formal parameters are not objects. (Digression to meta-discussion
- >about how the compiler might treat the code would be irrelevant.)
-
- Actually, in C++ formals are objects. As I already discussed, parameter
- assignment is considered an initialization of a declaration, an object
- declaration. If the declarator specifies a reference or pointer *object*, this
- object is polymorphic. If you want to argue that in some languages, such as
- Smalltalk, that names or entities are not objects but denote them, thats a
- subtle difference, since pointers and references (or the names or entities)
- *are* objects in some languages, simply objects that denote other objects.
- You won't be able to program in languages with pointers if you don't
- understand this. Anyway, I see the point that the denoted objects are the
- ones of *primary* interest, and perhaps I should change my definition to
- emphasize that the references are polymorphic and not the interesting (?)
- objects themselves (sorry piercarlo).
-
- > I think you're the one inflicting confusing terminology. Everyone in recent
- > history seems to define polymorphism as a property of objects (Stroustrup,
- > Meyer, Booch, ...)
- >
- >I think this is because you have conflated the notions of ``objects'' and
- >``variable'' (or reference, or pointer, or whatever).
-
- This is completely wrong because it is out of context. Piercarlo was arguing
- that either procedures (??) or objects "becoming" other objects defines
- polymorphism, and that is what I was disagreeing with. He argued against
- Meyer, Booch, and me completely - names, entities, objects and all - stating
- our intention of polymorphism is wrong and should be referred to instead as
- "latent typing". I hope I've presented enough information to show *we* are
- correct! And his anachronistic views on the functional implementation of the
- object model and then using a functional view of values on top IMHO seems to
- have confused the ganoozga's out of everyone in this newsgroup. At least
- I push the object model [and history has shown both you and piercarlo often
- haven't, if I may take sides].
-
- Regards,
- bob
- objsys@netcom.com
-
- I'm still wondering if there are any other true OO believers out there, its
- getting lonely...
-