comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: DOS Options
Date: Wed, 19 Dec 2007 16:47:14 -0600
Date: 2007-12-19T16:47:14-06:00	[thread overview]
Message-ID: <fkc6r0$1p4$1@jacob-sparre.dk> (raw)
In-Reply-To: 1i9d4ab.twgszk4zp5evN%csampson@inetworld.net

"Charles H. Sampson" <csampson@inetworld.net> wrote in message
news:1i9d4ab.twgszk4zp5evN%csampson@inetworld.net...
...
>      This has the effect that it's still necessary to write a parser for
> Argument (1), something I thought Ada.Command_Line might be taking care
> of.  I'm talking about the case of multiple slash-headed options jammed
> against the command:
>
>         command/x/y/z
>
> I was hoping that Ada.Command_Line would return "/x" as Argument (1),
> "/y" as Argument (2), etc.
>
>      Is the GNAT implementation a reasonable one?  Knowing some of the
> people at ACT, I suspect that they researched it fully and are doing
> exactly what is expected for a DOS program.

Ada.Command_Line is a thinly-veiled wrapper on the normal C "argv/argc"
mechanism. I think most Ada compilers simply copy that mechanism (that's
pretty much a requirement on Unix, and it is better for portability on all
platforms). The fact that that mechanism isn't very useful is not considered
relevant. (And yes, for the record, Janus/Ada does exactly that for
Ada.Command_Line. We don't even bother to use Ada.Command_Line for the
command line processing of our compiler and tools; it is just as easy to
process starting from the original string.)

                       Randy.





  parent reply	other threads:[~2007-12-19 22:47 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-05  3:34 DOS Options Charles H. Sampson
2007-12-05  5:15 ` Jeffrey Creem
2007-12-19 18:00   ` Charles H. Sampson
2007-12-19 19:40     ` Gautier
2007-12-19 22:59       ` Randy Brukardt
2007-12-19 23:36         ` Adam Beneschan
2007-12-20 22:15           ` Randy Brukardt
2007-12-19 22:47     ` Randy Brukardt
2007-12-19 22:47     ` Randy Brukardt
2007-12-21  0:39       ` Jeffrey R. Carter
2007-12-22  0:45         ` Randy Brukardt
2007-12-19 22:47     ` Randy Brukardt [this message]
2007-12-19 22:47     ` Randy Brukardt
2007-12-05 10:06 ` gautier_niouzes
2007-12-05 10:19 ` Stephen Leake
2007-12-05 14:51 ` Charles H. Sampson
2007-12-05 20:06 ` anon
replies disabled

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