comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com
Subject: Re: Program error from assignment??
Date: 1998/07/23
Date: 1998-07-23T00:00:00+00:00	[thread overview]
Message-ID: <6p7sg8$66r$1@nnrp1.dejanews.com> (raw)
In-Reply-To: dewar.901174774@merv

In article <dewar.901174774@merv>,
  dewar@merv.cs.nyu.edu (Robert Dewar) wrote:
> Actually, I have seen more than one example of recursive main programs
> in Ada. There is nothing to prevent it, and it is perfectly reasona ble
> to structure a program this way if it makes sense.

Well, that last part of the last sentence is a bit of a tautology, so its
tough to disagree. The part I was having trouble with was thinking of a
situation where it would make sense. I can even perhaps see making the main
procedure recursive as you suggest. But having a task started up by the main
procedure call the main procedure itself?? %-(

Hmmm. Thinking about it, that would be sort of a poor-man's "fork()"...perhaps
I'm getting sick too. :-)

T.E.D.

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum




  reply	other threads:[~1998-07-23  0:00 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-21  0:00 Program error from assignment?? dennison
1998-07-22  0:00 ` dennison
1998-07-22  0:00   ` Robert Dewar
1998-07-22  0:00   ` dennison
1998-07-23  0:00     ` Robert Dewar
1998-07-23  0:00     ` Tucker Taft
1998-07-22  0:00   ` Stephen Leake
1998-07-22  0:00     ` dennison
1998-07-22  0:00   ` David C. Hoos, Sr.
1998-07-22  0:00   ` Jean-Pierre Rosen
1998-07-22  0:00     ` dennison
1998-07-23  0:00       ` Jean-Pierre Rosen
1998-07-24  0:00         ` tedennison
1998-07-23  0:00       ` Robert Dewar
1998-07-23  0:00         ` dennison [this message]
1998-07-23  0:00   ` Dale Stanbrough
replies disabled

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