comp.lang.ada
 help / color / mirror / Atom feed
From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: friend classes in ada95
Date: 2000/04/19
Date: 2000-04-19T00:00:00+00:00	[thread overview]
Message-ID: <8dldfb$lnl$1@nnrp1.deja.com> (raw)
In-Reply-To: 38FD1830.949F5E81@mindspring.com

In article <38FD1830.949F5E81@mindspring.com>,
  "John J. Rusnak" <john.rusnak@mindspring.com> wrote:

> I'd have to weigh in on the opposite side.  "Class" and
> "object" are rather easy terms to grasp.

A tagged object in Ada is NOT a class in the OO sense, and oddly
this is true of a class in C++. Just because you call something
a class in C++ does not mean you are defining an object or class
in the OO sense.

I find that pretty confusing in C++ I must say, and it
definitely leads people into the realms of mega-confusion.
I often see people who define "classes" in C++ and thinking
they are doing object oriented programming, when they are just
defining abstract data types.

Class and object may be easy terms for you to grasp, but most
C++ programmers seem quite confused if you ask them to define
the difference between an abstract data type and an object.

Tagged types are simply types with particular properties that
are useful for many programming purposes (e.g. one use is to
simply ensure that objects (in the Ada sense!) of the type are
passed by reference, there are many many other uses, including
the fact that tagged types are suitable for representing
certain kinds of objects (in the OO sense).

> And I can tell you through exeperience that the Ada
> model has been difficult for many I have seen coming into the
> language to grasp.

Anyone who understands what types and abstract data types are
about should have no trouble with the Ada type model. If you are
talking about the "object" model of Ada, then my response is
that this is VERY confused thinking.

Object oriented programming is about a paradigm for program
design, it is not a language construct!

  (Some with OO backgrounds and some without).  But to each
their own
> I suppose.
>
> I agree with the comment on "code words", though.
>
> -John
>
> tmoran@bix.com wrote:
>
> > > A tagged type is not a class. A tagged type is a
programming construct
> >   When first trying to understand this stuff, I personally
found thinking
> > of a tag on a record etc to be much easier to understand
than all the
> > OO stuff about classes and objects.  "class" and "object"
are such
> > vague terms they convey little information. Also they are
used for
> > a variety of *different* things (see mathematics, or MS's
use of "class"
> > in COM).  OTOH, if one's intent is to certify membership in
an
> > exclusive club by the use of code words known only to the
members,
> > then "class" is as good as anything.
>
>


Sent via Deja.com http://www.deja.com/
Before you buy.




  reply	other threads:[~2000-04-19  0:00 UTC|newest]

Thread overview: 91+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-14  0:00 friend classes in ada95 Stefan Folkesson
2000-04-14  0:00 ` John J. Rusnak
2000-04-14  0:00 ` Julian Day
2000-04-14  0:00   ` Steve Folly
2000-04-14  0:00     ` Robert A Duff
2000-04-17  0:00       ` John J. Rusnak
2000-04-18  0:00         ` Vincent Marciante
2000-04-18  0:00           ` John Rusnak
2000-04-18  0:00       ` Steve Folly
2000-04-14  0:00 ` Florian Weimer
2000-04-14  0:00   ` Stefan Folkesson
2000-04-14  0:00 ` swhalen
2000-04-15  0:00 ` Jeff Carter
2000-04-16  0:00   ` Robert Dewar
2000-04-16  0:00     ` David Botton
2000-04-17  0:00       ` Robert Dewar
2000-04-17  0:00         ` David Botton
2000-04-18  0:00           ` friend classes in ada95 (long) tmoran
2000-04-18  0:00             ` David Botton
2000-04-18  0:00               ` friend classes in ada95 Stanley R. Allen
2000-04-19  0:00               ` friend classes in ada95 (long) Brian Rogoff
2000-04-19  0:00                 ` Hyman Rosen
2000-04-19  0:00                   ` Brian Rogoff
2000-04-23  0:00                     ` Hyman Rosen
2000-04-23  0:00                       ` Brian Rogoff
2000-04-24  0:00                         ` Hyman Rosen
2000-04-25  0:00                           ` Brian Rogoff
2000-04-25  0:00                             ` Ole-Hjalmar Kristensen
2000-04-19  0:00                 ` David Botton
2000-04-19  0:00               ` MI, was Re: friend classes in ada95 tmoran
2000-04-19  0:00                 ` David Botton
2000-04-17  0:00         ` David Botton
2000-04-18  0:00       ` Geoff Bull
2000-04-18  0:00         ` Jean-Pierre Rosen
2000-04-18  0:00           ` tmoran
2000-04-18  0:00             ` John J. Rusnak
2000-04-19  0:00               ` Robert Dewar [this message]
2000-04-19  0:00               ` Jean-Pierre Rosen
2000-04-19  0:00               ` Geoff Bull
2000-04-19  0:00                 ` David Botton
2000-04-19  0:00                   ` Robert Dewar
2000-04-19  0:00                   ` Robert Dewar
2000-04-20  0:00                     ` Geoff Bull
2000-04-19  0:00                 ` Ehud Lamm
2000-04-19  0:00                 ` Jeff Susanj
2000-04-19  0:00                   ` Bill Greene
2000-04-19  0:00                   ` Robert Dewar
2000-04-19  0:00                     ` Jeff Carter
2000-04-19  0:00                       ` Ray Blaak
2000-04-20  0:00                         ` Jean-Pierre Rosen
2000-04-20  0:00                           ` Robert Dewar
2000-04-20  0:00                             ` Brian Rogoff
2000-04-20  0:00                             ` Jean-Pierre Rosen
2000-04-20  0:00                             ` BSCrawford
2000-04-20  0:00                           ` Ray Blaak
2000-04-20  0:00                             ` Jean-Pierre Rosen
2000-04-24  0:00                               ` Ray Blaak
2000-04-20  0:00                         ` Robert Dewar
2000-04-20  0:00                           ` Ray Blaak
2000-04-20  0:00                             ` Charles Hixson
2000-04-21  0:00                               ` Jean-Pierre Rosen
2000-04-29  0:00                                 ` Aidan Skinner
2000-04-29  0:00                                   ` Robert I. Eachus
2000-04-21  0:00                               ` Jon S Anthony
2000-04-20  0:00                       ` Robert Dewar
2000-04-20  0:00                         ` Jeff Carter
2000-04-21  0:00                           ` Robert Dewar
2000-04-21  0:00                             ` Ken Garlington
2000-04-21  0:00                             ` Jon S Anthony
2000-04-22  0:00                               ` Robert Dewar
2000-04-19  0:00                   ` tmoran
2000-04-19  0:00                 ` Robert Dewar
2000-04-18  0:00           ` John Rusnak
2000-04-19  0:00             ` Robert Dewar
2000-04-18  0:00           ` David Botton
2000-04-18  0:00           ` Pascal Obry
2000-04-18  0:00         ` David Botton
2000-04-16  0:00     ` Jeff Carter
2000-04-16  0:00       ` David Botton
2000-04-17  0:00         ` Robert Dewar
2000-04-17  0:00           ` Hyman Rosen
2000-04-17  0:00             ` Robert Dewar
2000-04-17  0:00     ` Robert I. Eachus
2000-04-18  0:00       ` Robert Dewar
2000-04-19  0:00         ` Robert I. Eachus
2000-04-20  0:00           ` Robert Dewar
2000-04-20  0:00             ` Ray Blaak
2000-04-23  0:00             ` Robert I. Eachus
2000-04-19  0:00     ` Alfred Hilscher
2000-04-19  0:00       ` Ray Blaak
2000-04-19  0:00         ` Robert Dewar
replies disabled

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