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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,502b8ae4630fba59 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out04b.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!in03.usenetserver.com!news.usenetserver.com!wns14feed!worldnet.att.net!attbi_s21.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: DOS Options References: <1i8m324.g6pon43ql1ogN%csampson@inetworld.net> <1i9d4ab.twgszk4zp5evN%csampson@inetworld.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.213 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s21 1198197578 12.201.97.213 (Fri, 21 Dec 2007 00:39:38 GMT) NNTP-Posting-Date: Fri, 21 Dec 2007 00:39:38 GMT Organization: AT&T ASP.att.net Date: Fri, 21 Dec 2007 00:39:38 GMT Xref: g2news1.google.com comp.lang.ada:19017 Date: 2007-12-21T00:39:38+00:00 List-Id: Randy Brukardt wrote: > "Charles H. Sampson" 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. > > This got posted 5 times. That's a record, even for you. -- Jeff Carter "We use a large, vibrating egg." Annie Hall 44