From: Robert Dewar <robert_dewar@my-deja.com>
Subject: Re: Inheritance and Polymorphism in Ada !!
Date: 1999/10/18
Date: 1999-10-18T00:00:00+00:00 [thread overview]
Message-ID: <7udtav$ma4$1@nnrp1.deja.com> (raw)
In-Reply-To: 38077b65_1@news1.prserv.net
In article <38077b65_1@news1.prserv.net>,
"Matthew Heaney" <matthew_heaney@acm.org> wrote:
> The purpose of a declare block is to localize the declaration
> of objects, as your example illustrated.
too narrow a view, there are other reasons: conveniently
encapsulate and name a chunk of code used only once, narrow
down an exception scope, etc etc.
> The purpose of a subprogram is to abstract away algorithmic
> complexity.
too narrow a view, there are other reasons: allow recursion,
name a chunk of code, take advantage of the return semantics,
etc.
> These are two completely different things, and there should be
> no reason why they are confused.
Well if you take a simplistic and narrow view, you perhaps can
avoid the confusion, but in fact there is a definite overlap for
the case of a chunk of non-recursive code that is called just
once. This might be a declare block, it might be a procedure,
it depends, sometimes one is better, sometimes the other.
Sent via Deja.com http://www.deja.com/
Before you buy.
next prev parent reply other threads:[~1999-10-18 0:00 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-10-15 0:00 Inheritance and Polymorphism in Ada !! Chango Cho
1999-10-15 0:00 ` Andreas Winckler
1999-10-15 0:00 ` tmoran
1999-10-15 0:00 ` tmoran
1999-10-15 0:00 ` Richard D Riehle
1999-10-15 0:00 ` Matthew Heaney
1999-10-15 0:00 ` Richard D Riehle
1999-10-18 0:00 ` Robert Dewar [this message]
1999-10-23 0:00 ` Richard D Riehle
1999-10-24 0:00 ` Robert Dewar
1999-10-24 0:00 ` Brian Rogoff
1999-10-26 0:00 ` Robert Dewar
1999-10-25 0:00 ` Robert A Duff
1999-10-26 0:00 ` Robert Dewar
1999-10-26 0:00 ` Robert A Duff
1999-10-18 0:00 ` Robert A Duff
1999-10-19 0:00 ` Robert Dewar
1999-10-20 0:00 ` Robert A Duff
1999-10-21 0:00 ` Paul Duquennoy
1999-10-21 0:00 ` Simon Wright
1999-10-21 0:00 ` Robert A Duff
1999-10-21 0:00 ` Robert Dewar
1999-10-22 0:00 ` Matthew Heaney
1999-10-15 0:00 ` Stephane Barbey
1999-10-15 0:00 ` Matthew Heaney
1999-10-18 0:00 ` Robert A Duff
1999-10-18 0:00 ` Brian Rogoff
1999-10-15 0:00 ` Lutz Donnerhacke
1999-10-18 0:00 ` Robert A Duff
1999-10-15 0:00 ` Ted Dennison
1999-10-15 0:00 ` Lutz Donnerhacke
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox