comp.lang.ada
 help / color / mirror / Atom feed
From: "Theodore E. Dennison" <dennison@escmail.orl.mmc.com>
Subject: Re: Implement Inheritance (Ada83)?
Date: 8 Mar 1995 13:28:57 GMT
Date: 1995-03-08T13:28:57+00:00	[thread overview]
Message-ID: <3jkbep$d3f@theopolis.orl.mmc.com> (raw)
In-Reply-To: 3jiala$kqs@explorer.csc.com

Jeff Seigle <jseigle@csci.csc.com> writes:
> In article <3jhj04$2dv@gnat.cs.nyu.edu> dewar@cs.nyu.edu (Robert Dewar) writes:
> >....Inheritance is a conceptual idea, not a
> >syntactic gizmo. ...you can perfectly well implement'
> >the fundamental abstraction mechanism that we call inheritance in ANY
> >language!
> 
> Although this statement is true, the best results are had when the language
> has exlicit in its fabric the concepts that you are using to design your
..
> constrained by the language.  The big negative is that once the code is
> written there is no enforcement of your wonderful ideas, and the next
> one to come along with a mod can stomp down all of your imaginary fences.

True enough. But in Ada 83 the only thing that is really missing is dynamic
dispatching. The other major advantages to OO can be achieved with nested 
records and generics. 

Type extension can be achieved by making the "parent type" a record field in
the
child type. "Inheritance" is sort of automatic (just pass the parent field to
its routines. Static dispatching can be achieved via overloading. Dynamic 
dispatching ... SOL. Creation and deletion methods ... SOL (although there are
things you can do to "force" creation).

T.E.D.




  reply	other threads:[~1995-03-08 13:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-03-07 19:03 Implement Inheritance (Ada83)? Jeff Seigle
1995-03-08 13:28 ` Theodore E. Dennison [this message]
1995-03-08 21:38 ` William Brennan
1995-03-10  9:35   ` Peter Hermann
1995-03-13  2:27     ` Mark A Biggar
  -- strict thread matches above, loose matches on Subject: below --
1995-03-10 15:15 Jeff Seigle
1995-03-03 13:51 Dwayne Barrington
1995-03-06 15:07 ` Kevin Weise
1995-03-07 12:19   ` Robert Dewar
1995-03-07 13:19   ` Theodore E. Dennison
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox