comp.lang.ada
 help / color / mirror / Atom feed
From: rlk@rational.com (Bob Kitzberger)
Subject: Re: Main (function) program with exit(status)
Date: 16 Sep 1994 22:31:38 GMT
Date: 1994-09-16T22:31:38+00:00	[thread overview]
Message-ID: <35d6ca$qmf@rational.rational.com> (raw)
In-Reply-To: 35cc7q$9it@rapnet.sanders.lockheed.com

John J Cupak Jr CCP (cupak@rapnet.sanders.lockheed.com) wrote:

: Most coding standards, and even the LRM, state that the main program
: must be a parameterless procedure. However, it seems that there's
: nothing to prevent the main program from being a parameterless function!

The LRM _allows_ both functions and procedures as main programs (even
generic instantiations of library units), and also allows parameters to
those subprograms.  It _requires_ that at least a parameterless procedure
main program be supported.  It also requires that the main subprogram
be a library unit.

Your vendor's "Appendix F" documentation may give more information on
capabilities/limitations for subprograms and parameters for main
programs.

	.Bob.

--
Bob Kitzberger	        +1 (916) 274-3075	        rlk@rational.com
Rational Software Corp., 10565 Brunswick Rd. #11, Grass Valley, CA 95945



  parent reply	other threads:[~1994-09-16 22:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-16 15:05 Main (function) program with exit(status) John J Cupak Jr CCP
1994-09-16 21:39 ` David Emery
1994-09-16 22:31 ` Bob Kitzberger [this message]
1994-09-17  3:18 ` Robert Dewar
1994-09-17 16:31   ` Mats Weber
1994-09-23 14:35     ` Main (function) program with exit(stat Bob Gilbert
replies disabled

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