comp.lang.ada
 help / color / mirror / Atom feed
From: Brian Rogoff <bpr@shell5.ba.best.com>
Subject: Re: pointers & OOP
Date: 1999/05/07
Date: 1999-05-07T00:00:00+00:00	[thread overview]
Message-ID: <Pine.BSF.4.10.9905071853210.1885-100000@shell5.ba.best.com> (raw)
In-Reply-To: 7gv70i$id6$1@nnrp1.deja.com

On Fri, 7 May 1999 dennison@telepath.com wrote:

> In article <Pine.BSF.4.10.9905062007340.27089-100000@shell5.ba.best.com>,
>   Brian Rogoff <bpr@shell5.ba.best.com> wrote:
> > On Wed, 5 May 1999, John Robinson wrote:
> >
> > I think your original claim about the inability to do OOP without pointers
> > is more convincing in the weak version too, since there are some things
> > like heterogeneous collections (in general) and access discriminant tricks
> > (in Ada 95) that require access types, but its obvious that you can use
> > OOP features in a pointerless program. How much OOP do you have to use for
> > an application to be a major OOP application?
> 
> Perhaps the source of confusion is that dynamic dispatching from collections

Dynamic dispatching *period*. Ada-83 is even weaker than C in providing
the ability to fake OOP nicely, since it doesn't have access to
subprogram. 

> is the main new thing that Ada95 tagged types bring to the table. The other
> typical facets of OOP can be accomplished in Ada83 using minor tricks. So if
> you are going to use Ada95 to do things you just couldn't do Ada83, you are
> typically going to be using pointers.

But you don't need pointers to classwide types to get dynamic dispatch. 

FWIW, my "OO" programs in Ada do make use of pointers.

-- Brian






  reply	other threads:[~1999-05-07  0:00 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-01  0:00 pointers & OOP Matthew Heaney
1999-05-01  0:00 ` Matthew Heaney
1999-05-03  0:00 ` John Robinson
1999-05-03  0:00   ` Samuel Mize
1999-05-04  0:00     ` Martin C. Carlisle
1999-05-04  0:00     ` Robert Dewar
1999-05-04  0:00   ` Robert Dewar
1999-05-04  0:00     ` Mike Silva
1999-05-05  0:00     ` John Robinson
1999-05-05  0:00       ` Robert Dewar
1999-05-08  0:00         ` Ehud Lamm
1999-05-05  0:00       ` Matthew Heaney
1999-05-05  0:00       ` Robert Dewar
1999-05-05  0:00         ` John Robinson
1999-05-06  0:00           ` Brian Rogoff
1999-05-07  0:00             ` dennison
1999-05-07  0:00               ` Brian Rogoff [this message]
1999-05-10  0:00                 ` dennison
1999-05-11  0:00                   ` Jean-Pierre Rosen
1999-05-11  0:00                     ` dennison
1999-05-10  0:00             ` John Robinson
1999-05-14  0:00               ` Matthew Heaney
1999-05-14  0:00                 ` David Botton
1999-05-14  0:00           ` Matthew Heaney
1999-05-14  0:00             ` Ed Falis
1999-05-06  0:00       ` Tom Moran
1999-05-06  0:00         ` John Robinson
1999-05-06  0:00           ` Tom Moran
1999-05-07  0:00             ` dennison
1999-05-07  0:00             ` dennison
1999-05-07  0:00             ` dennison
1999-05-10  0:00             ` John Robinson
1999-05-14  0:00         ` Matthew Heaney
1999-05-06  0:00       ` Simon Wright
1999-05-06  0:00         ` John Robinson
1999-05-08  0:00           ` Simon Wright
1999-05-10  0:00             ` John Robinson
1999-05-05  0:00     ` Francois Godme
  -- strict thread matches above, loose matches on Subject: below --
1999-05-01  0:00 Tom Moran
replies disabled

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