home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / ada / 3196 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.2 KB

  1. Xref: sparky comp.lang.ada:3196 comp.object:4145
  2. Path: sparky!uunet!portal!lll-winken!parc!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!ames!agate!linus!linus.mitre.org!linus!mbunix!emery
  3. From: emery@Dr_No.mitre.org (David Emery)
  4. Newsgroups: comp.lang.ada,comp.object
  5. Subject: Re: OOD, Ada, and Inheritance
  6. Message-ID: <EMERY.92Nov5142031@Dr_No.mitre.org>
  7. Date: 5 Nov 92 19:20:31 GMT
  8. References: <mmaccorm.47@fox.nstn.ns.ca>
  9. Sender: news@linus.mitre.org (News Service)
  10. Organization: The Mitre Corp., Bedford, MA.
  11. Lines: 16
  12. In-Reply-To: mmaccorm@fox.nstn.ns.ca's message of Thu, 5 Nov 1992 17:04:22 GMT
  13. Nntp-Posting-Host: dr_no.mitre.org
  14.  
  15. Ada *does* provide a limited form of inheritance, via derived types.
  16. Ada 9X will build on this for general inheritance.  
  17.  
  18. We've 'simulated' inheritance via generics.  This was a painful
  19. process.  
  20.  
  21. Generally, if inheritance makes sense, then use it in the design, and
  22. 'manually code' it.  If all you need is inheritance, and not
  23. polymorphism, that's easy to do.  Polymorphism requires a lot of case
  24. analysis, which is somewhat more painful.
  25.  
  26. Finally, you might want to consider 'Classic-Ada', which is a
  27. pre-processor that takes an "object oriented Ada" and translates it to
  28. legal Ada.
  29.  
  30.                 dave
  31.