From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8a602a7f65bebaea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-21 11:58:16 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!cyclone1.gnilink.net!wn13feed!worldnet.att.net!bgtnsc04-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3DB44DFC.9010100@worldnet.att.net> From: Jim Rogers User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.4) Gecko/20011128 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Abstract methods in ADA95 References: <20021017-143635-828420@foorum.com> <3DAF0ECE.7080204@acm.org> <3DB0785A.1040304@acm.org> <3DB4401A.388A8C05@mmm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 21 Oct 2002 18:58:14 GMT NNTP-Posting-Host: 12.86.35.143 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1035226694 12.86.35.143 (Mon, 21 Oct 2002 18:58:14 GMT) NNTP-Posting-Date: Mon, 21 Oct 2002 18:58:14 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:30002 Date: 2002-10-21T18:58:14+00:00 List-Id: 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