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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,144064e39ca0ca6a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-09-17 12:57:07 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!ncar!ames!pacbell.com!well!barrnet.net!rational.com!rlk From: rlk@rational.com (Bob Kitzberger) Newsgroups: comp.lang.ada Subject: Re: Main (function) program with exit(status) Date: 16 Sep 1994 22:31:38 GMT Organization: Rational Software Corp Distribution: world Message-ID: <35d6ca$qmf@rational.rational.com> References: <35cc7q$9it@rapnet.sanders.lockheed.com> NNTP-Posting-Host: bonnie.rational.com X-Newsreader: TIN [version 1.2 PL2] Date: 1994-09-16T22:31:38+00:00 List-Id: 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