home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.lang.ada:3196 comp.object:4145
- 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
- From: emery@Dr_No.mitre.org (David Emery)
- Newsgroups: comp.lang.ada,comp.object
- Subject: Re: OOD, Ada, and Inheritance
- Message-ID: <EMERY.92Nov5142031@Dr_No.mitre.org>
- Date: 5 Nov 92 19:20:31 GMT
- References: <mmaccorm.47@fox.nstn.ns.ca>
- Sender: news@linus.mitre.org (News Service)
- Organization: The Mitre Corp., Bedford, MA.
- Lines: 16
- In-Reply-To: mmaccorm@fox.nstn.ns.ca's message of Thu, 5 Nov 1992 17:04:22 GMT
- Nntp-Posting-Host: dr_no.mitre.org
-
- Ada *does* provide a limited form of inheritance, via derived types.
- Ada 9X will build on this for general inheritance.
-
- We've 'simulated' inheritance via generics. This was a painful
- process.
-
- Generally, if inheritance makes sense, then use it in the design, and
- 'manually code' it. If all you need is inheritance, and not
- polymorphism, that's easy to do. Polymorphism requires a lot of case
- analysis, which is somewhat more painful.
-
- Finally, you might want to consider 'Classic-Ada', which is a
- pre-processor that takes an "object oriented Ada" and translates it to
- legal Ada.
-
- dave
-