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,2c79e691a3b59744 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 1994-11-01 12:10:31 PST Newsgroups: comp.lang.ada Path: nntp.gmd.de!xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!news.belwue.de!news.dfn.de!Germany.EU.net!wizard.pn.com!satisfied.elf.com!news.mathworks.com!europa.eng.gtefsd.com!howland.reston.ans.net!news.sprintlink.net!crash!telesoft!east.alsys.com!kehs From: kehs@east.alsys.com (David Kehs) Subject: Re: Command line package for Alsys Ada Compiler Message-ID: Sender: news@alsys.com Organization: Alsys Inc, Burlington, MA, USA References: Date: Tue, 1 Nov 1994 17:12:57 GMT Date: 1994-11-01T17:12:57+00:00 List-Id: In nelsonb@oodis01.hill.af.mil (Contractor Bert Nelson) writes: >Does the Alsys Ada compiler have a package that will allow programs >to use command line arguments? >What is it called? >Does someone have an example using this Alsys package? Yes, there is a package called SYSTEM_ENVIRONMENT, which has the declarations: function ARG_COUNT return POSITIVE; -- returns the number of arguments on the command line of the program, -- with the name of the program being invoked counting as one argument. function ARG_VALUE (INDEX : in NATURAL) return STRING; -- returns the INDEXth argument on the command line of the program -- If INDEX is larger than ARG_COUNT-1 then the function will raise -- the exception ILLEGAL_ARG_INDEX. >On one project the government is considering moving from the current >AT&T Unix box with a Verdix compiler to an HP9000 with an Alsys compiler. >Throughout the programs the Verdix package COMMAND_LINE has been used and >would have to be changed to use the Alsys package that handles command >line arguments or call another package that has the same functionality. You could also use the POSIX package POSIX_PROCESS_ENVIRONMENT to achieve greater portability. Dave Kehs Alsys Inc