From: cosc19z5@Bayou.UH.EDU (Spasmo)
Subject: Re: Ada95 OOP Questions
Date: 1996/07/30
Date: 1996-07-30T00:00:00+00:00 [thread overview]
Message-ID: <4tk8ai$nph@Masala.CC.UH.EDU> (raw)
In-Reply-To: 4tjaai$1hp@news.ida.org
David Wheeler (wheeler@aphrodite.csed.ida.org) wrote:
: Andre Spiegel (spiegel@berlin.informatik.uni-stuttgart.de) wrote:
: : Spasmo writes:
[Snip]
: : With a use-clause, it looks better
: : with Persons; use Persons;
: : P : Person;
: : Walk (P);
: : Talk (P);
: : Eat (P);
Well since I try to avoid using a use-clause (I like the
namespace protection I get), the above really (to me) doesn't
look any better (not that the first one looked bad).
: : > Correct me if I'm wrong on this. So you're still passing parameters
: : > which means that data and subprograms are still 2 different entities
: : > which sorta hurts the abstraction, rather than in say C++ where
: : > you've got a unified object.
: : You _are_ wrong. The subprograms actually _are_ a part of the object,
: : and they "go" with it, so to speak of, whereever you take the object.
: : It is just less obvious from the syntax in Ada.
Oh.
: Spiegel's right. Spasmo - you're concentrating on minor syntactic variance.
: Ada treats all calls with the same syntax; C++'s syntax varies depending
: on how it's defined. The difference is unimportant.
Well I can live with passing parameters but still the question
of inheriting operations from a parent class defined in a
different module is IMO a big deal. I mean, I've looked at
the Lovelace tutorial and checked on this, even looked at the
OOP section in the "Core Language" section of the rationale
(after a while I started skimming), but I've yet to see
this.
: To see an example of OO in Ada95, look at my "Small" program at:
: "http://lglwww.epfl.ch/Ada/Tutorials/Lovelace/small.htm"
: You'll see lots of OO concepts, and operations unified with the object.
Indeed, this is what I need to do. I'm heading over there
right now and looking at the program. I hope a good example
(Small is mentioned a lot) will be the thing to make me realize
just what it is I've been missing.
: --- David A. Wheeler
: Net address: dwheeler@ida.org
--
Spasmo
"Everyone has secrets, but sometimes you get caught,
So if it's just between us, my silence can be bought"
"Blackmail" by Sloppy Seconds
next prev parent reply other threads:[~1996-07-30 0:00 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-28 0:00 Ada95 OOP Questions Spasmo
1996-07-28 0:00 ` Andre Spiegel
1996-07-28 0:00 ` Spasmo
1996-07-29 0:00 ` Thomas Kendelbacher
1996-07-31 0:00 ` Spasmo
1996-08-01 0:00 ` Thomas Kendelbacher
1996-08-02 0:00 ` Gene Ouye
1996-08-01 0:00 ` Jon S Anthony
1996-07-30 0:00 ` David Wheeler
1996-07-31 0:00 ` Spasmo
1996-07-30 0:00 ` Ken Garlington
1996-08-04 0:00 ` Spasmo
1996-07-28 0:00 ` David C. Hoos, Sr.
1996-07-28 0:00 ` Spasmo
1996-07-29 0:00 ` Andre Spiegel
1996-07-29 0:00 ` David Wheeler
1996-07-30 0:00 ` Spasmo [this message]
1996-07-30 0:00 ` Spasmo
1996-07-29 0:00 ` Thomas Kendelbacher
1996-08-02 0:00 ` Robert Dewar
1996-08-05 0:00 ` Thomas Kendelbacher
1996-08-06 0:00 ` Robert I. Eachus
1996-08-06 0:00 ` Robert Dewar
1996-08-06 0:00 ` Thomas Kendelbacher
1996-08-06 0:00 ` Robert A Duff
1996-08-07 0:00 ` Robert Dewar
1996-08-08 0:00 ` Robert A Duff
1996-08-09 0:00 ` Robert Dewar
1996-08-12 0:00 ` Robert I. Eachus
1996-08-08 0:00 ` Theodore E. Dennison
1996-08-09 0:00 ` Robert Dewar
1996-08-12 0:00 ` Joel VanLaven
1996-08-10 0:00 ` Chris Morgan
1996-07-30 0:00 ` Andre Spiegel
1996-07-30 0:00 ` Andre Spiegel
1996-07-30 0:00 ` Robert I. Eachus
1996-08-01 0:00 ` Jon S Anthony
1996-08-13 0:00 ` Eric C. Newton
1996-08-14 0:00 ` Eric C. Newton
1996-08-14 0:00 ` Jon S Anthony
1996-08-14 0:00 ` Ken Garlington
1996-08-21 0:00 ` Jon S Anthony
-- strict thread matches above, loose matches on Subject: below --
1996-08-08 0:00 W. Wesley Groleau (Wes)
1996-08-20 0:00 Farshad Nayeri
1996-08-20 0:00 Farshad Nayeri
1996-08-21 0:00 ` Jon S Anthony
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox