From: sommar@enea.se (Erland Sommarskog)
Subject: Command line arguments
Date: 29 Apr 91 22:16:09 GMT [thread overview]
Message-ID: <3275@enea.se> (raw)
In-Reply-To: 1991Apr25.143711.11311@ecst.csuchico.edu
Also sprach Ralph Reid III (rreid@ecst.csuchico.edu):
>I have played around with command line parameters in Ada a little,
>and there does not seem to be a standard technique for reading them.
>Several pieces of source code seem to be floating around, and two
>examples came with the Meridian Adavantage compiler I have. Perhaps
>a standard should be considered for Ada9x?
Undoubtedly it would be pleasant if all Ada compilers on
Unix were interchangeable on argv/argc, but that something
like a POSIX binding not Ada 9X.
Since you retrieve the arguments differently in different OSs,
reading the command line is something which by definition is
not portable(*) so it can't be in the language. Remember that
the command-line interface itself is OS dependent.
(*) Yes, I know that argc/argv is commonly available with C
implementations. But if you're going to get the command-line
interface right in, say, VMS, you better use the CLI$ routines.
--
Erland Sommarskog - ENEA Data, Stockholm - sommar@enea.se
Le fils du maire est en Normandie avec beaucoup de medecins.
next prev parent reply other threads:[~1991-04-29 22:16 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-04-23 20:51 Data Files David M. Onder
1991-04-25 14:37 ` Ralph Reid III
1991-04-29 22:16 ` Erland Sommarskog [this message]
1991-04-30 5:40 ` Command line arguments rharwood
1991-04-30 13:57 ` Steve Gabrilowitz
1991-05-01 23:57 ` Charles H. Sampson
1991-05-02 11:20 ` Joe Orost
1991-05-06 21:56 ` Erland Sommarskog
[not found] <Pine.GSO.3.96.981011153419.29087A-100000@yeager.cs.Buffalo.EDU>
1998-10-11 0:00 ` Matthew Heaney
1998-10-12 0:00 ` Dale Stanbrough
1998-10-12 0:00 ` Tom Moran
-- strict thread matches above, loose matches on Subject: below --
2000-05-28 0:00 Command Line arguments Pedro Diaz Jimenez
2000-05-28 0:00 ` Robert Dewar
2000-05-29 0:00 ` Gautier
2000-05-29 0:00 ` Antonio Dur�n Dom�nguez
2000-05-29 0:00 ` Jeff Carter
2000-05-29 0:00 ` Robert Dewar
2000-05-30 0:00 ` Antonio Dur�n Dom�nguez
2000-05-30 0:00 ` Gautier
2000-05-31 0:00 ` Alfred Hilscher
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox