comp.lang.ada
 help / color / mirror / Atom feed
From: Jim Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Abstract methods in ADA95
Date: Mon, 21 Oct 2002 18:58:14 GMT
Date: 2002-10-21T18:58:14+00:00	[thread overview]
Message-ID: <3DB44DFC.9010100@worldnet.att.net> (raw)
In-Reply-To: 3DB4401A.388A8C05@mmm.com

Programmer Dude wrote:

> SteveD wrote:
> 
> 
>>When is the last time you heard somone talk about a "Crapper"?
>>
> 
> Quite recently.  I use it all the time.  ;-)
> 
> On topic.... To be honest, I dislike the term "subprogram" to mean
> a *piece* of a complete program.  To me "program" implies a sense of
> completeness I don't find in a sub-routine/function/method/whatever.
> As an Ada nuub, I'm still in the mental translation "subprogram" ==
> "function" phase, and it's ever so slightly jarring.
> 
> (Back off topic....In the language I designed I called'm "Actors".
> They perform Actions. :-)
> 
> 

In the Ada sense they are called subprograms because procedures and
functions are different in Ada. This also distinguishes the set of
procedures and functions from tasks.

The sets of "actors" in Ada can be grouped in interesting ways.

subprograms - the set of non-protected procedures and functions
protected operations - the set of protected functions, protected procedures,
                        and protected entries
tasks

Grouping all these "actors" under a single set such as methods, subroutines,
or subprograms is not useful. Each grouping has its own set of interface
and usage rules.

Subprograms can be called by other subprograms, tasks, and protected operations.
Tasks can only be "called" through their entries.
Protected operations only work on protected objects and always imply mutual
exclusion locking.

If you get very general and try to group all these entities together you will
obscure the very real differences. I do not think such obscurity is useful.

Jim Rogers




  reply	other threads:[~2002-10-21 18:58 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-17 13:36 Abstract methods in ADA95 Hector Hugo
2002-10-17 14:39 ` Lutz Donnerhacke
2002-10-17 14:50 ` David C. Hoos
2002-10-17 14:57   ` Preben Randhol
2002-10-17 14:56 ` Preben Randhol
2002-10-17 16:18 ` Matthew Heaney
2002-10-17 19:26 ` Jeffrey Carter
2002-10-17 19:41   ` David C. Hoos
2002-10-17 20:34   ` Georg Bauhaus
2002-10-18 13:56     ` Frank J. Lhota
2002-10-18  0:40   ` Robert A Duff
2002-10-18 21:05     ` Jeffrey Carter
2002-10-18 22:00       ` Robert A Duff
2002-10-21 14:46       ` Wes Groleau
2002-10-18  3:13   ` SteveD
2002-10-18 14:44     ` Robert A Duff
2002-10-18 21:15       ` Dale Stanbrough
2002-10-18 21:08     ` Jeffrey Carter
2002-10-18 21:23       ` David C. Hoos
2002-10-18 21:37         ` Jeffrey Carter
2002-10-18 22:08           ` Robert A Duff
2002-10-21 15:03             ` Peter Amey
2002-10-21 15:04           ` Wes Groleau
2002-10-18 22:10       ` Robert A Duff
2002-10-19 12:40       ` SteveD
2002-10-19 18:40         ` Jeffrey Carter
2002-10-21 15:34           ` Martin Dowie
2002-10-21 19:37             ` Jeffrey Carter
2002-10-22 11:59               ` Georg Bauhaus
2002-10-22 12:24             ` Marin David Condic
2002-10-23  9:29               ` Martin Dowie
2002-10-23 10:36                 ` Ed Falis
2002-10-23 10:37                 ` Preben Randhol
2002-10-23 12:54                 ` John English
2002-10-23 13:48                   ` Martin Dowie
     [not found]         ` <aornkp$mpf$1@bob.news.rcn.net>
2002-10-19 18:54           ` Crapper (was: Re: Abstract methods in ADA95) Jeffrey Carter
2002-10-21 17:57         ` Abstract methods in ADA95 Programmer Dude
2002-10-21 18:58           ` Jim Rogers [this message]
2002-10-21 14:49       ` Wes Groleau
replies disabled

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