comp.lang.ada
 help / color / mirror / Atom feed
From: Francois Godme <fgodme@magic.fr>
Subject: Re: pointers & OOP
Date: 1999/05/05
Date: 1999-05-05T00:00:00+00:00	[thread overview]
Message-ID: <3730AA82.5F5BFBEE@magic.fr> (raw)
In-Reply-To: 7gn7gr$fr5$1@nnrp1.dejanews.com

Robert Dewar wrote:

> In article <$DL10CAsSgL3Iwj3@jr-and-assoc.demon.co.uk>,
>   John Robinson <chat@jr-and-assoc.demon.co.uk> wrote:
>
> > I still stand by the assertion that to do a full OO application you will
> > need to use pointers (smart or otherwise) somewhere along the line.
> > Yes, you can hide the implementation detail (and you should) but you
> > will still need them.
>
> You can assert anything, and you can stand by it, but that does not make
> it so. Please give some idea of why you think this. It seems plainly obvious
> to me that you can do full object oriented programming without pointers, and
> indeed I find pointers and OO to be pretty much orthogonal concepts, and so
> it is not surprising that they are orthogonal language features.
>
> Yes, closures need pointers, but we don't need closures for many kinds of
> OO programming!
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own

You can perfectly avoid pointers when you build new classes by aggregating
instances of concrete classes but are forced to use pointers with instances of
unknown concrete subclasses of known abstract classes.

For instance, let's say you want to design a set of widgets, you can abstract
the window class and provide two
concrete implementations of the window class, one for the Xlib, one for Win32.
The Widget class will have a window'class pointer as it tries to avoid to know
the exact details of the actual window.






  parent reply	other threads:[~1999-05-05  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     ` Robert Dewar
1999-05-04  0:00     ` Martin C. Carlisle
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       ` 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
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-05  0:00       ` Robert Dewar
1999-05-08  0:00         ` Ehud Lamm
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 [this message]
  -- 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