home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / object / 3550 < prev    next >
Encoding:
Text File  |  1992-09-15  |  1.7 KB  |  39 lines

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!mcsun!news.funet.fi!network.jyu.fi!sakkinen
  3. From: sakkinen@jyu.fi (Markku Sakkinen)
  4. Subject: Re: O.M(...) vs M(...), and is the Real World O-O?
  5. Message-ID: <1992Sep15.100426.20793@jyu.fi>
  6. Organization: University of Jyvaskyla, Finland
  7. References: <45jnpm_.objsys@netcom.com> <KERS.92Sep7094418@cdollin.hpl.hp.com> <a8wnd++.objsys@netcom.com>
  8. Date: Tue, 15 Sep 1992 10:04:26 GMT
  9. Lines: 28
  10.  
  11. In article <a8wnd++.objsys@netcom.com> Bob Hathaway <objsys@netcom.com> writes:
  12. >In article <KERS.92Sep7094418@cdollin.hpl.hp.com>, kers@hplb.hpl.hp.com (Chris Dollin) writes:
  13. > ...
  14. >>[I'm sure I've asked you this before, Bob, but what's the difference between a
  15. >>``dynamic'' function and a ``static'' one?]
  16. >
  17. >Whether the method/function selection is performed at compile-time (static
  18. >typing, e.g. C++, Eiffle) or at run-time (dynamic typing, e.g. CLOS, Smalltalk).
  19. > ...
  20.  
  21. Oh dear.  Method/function selection is certainly performed at run time
  22. in both C++ (although only for virtual functions) and Eiffel.
  23. The difference is that Smalltalk and similar languages have
  24. dynamic ad-hoc polymorphism: any method that just happens to have the same
  25. name will gladly be invoked.
  26. Statically typed OOPLs usually have dynamic inclusion polymorphism:
  27. only functions defined on more or less the same inheritance path
  28. are eligible.
  29.  
  30. ----------------------------------------------------------------------
  31. Markku Sakkinen (sakkinen@jytko.jyu.fi)
  32.        SAKKINEN@FINJYU.bitnet (alternative network address)
  33. Department of Computer Science and Information Systems
  34. University of Jyvaskyla (a's with umlauts)
  35. PL 35
  36. SF-40351 Jyvaskyla (umlauts again)
  37. Finland
  38. ----------------------------------------------------------------------
  39.