From: kehs@east.alsys.com (David Kehs)
Subject: Re: Command line package for Alsys Ada Compiler
Date: Tue, 1 Nov 1994 17:12:57 GMT
Date: 1994-11-01T17:12:57+00:00 [thread overview]
Message-ID: <CyLMHM.J6z@alsys.com> (raw)
In-Reply-To: CyHwxD.82r@oodis01.hill.af.mil
In <CyHwxD.82r@oodis01.hill.af.mil> 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
next prev parent reply other threads:[~1994-11-01 17:12 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-30 17:08 Command line package for Alsys Ada Compiler Contractor Bert Nelson
1994-11-01 17:10 ` Ed Falis
1994-11-01 17:12 ` David Kehs [this message]
1994-11-03 14:02 ` Wuyts Jan
1994-11-10 3:10 ` jgs0132
1994-11-10 10:14 ` Paul Warren
1994-11-14 2:20 ` jgs0132
1994-11-15 8:51 ` Paul Warren
1994-11-16 13:46 ` Robert Dewar
1994-11-17 16:18 ` Michael Feldman
1994-11-18 21:29 ` Pascal Martin @lone
1994-11-19 23:34 ` Robert Dewar
1994-11-10 13:44 ` Ed Falis
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox