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: a07f3367d7,6e64435d2a7280f2 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!usenet-fr.net!gegeweb.org!aioe.org!not-for-mail From: John McCabe Newsgroups: comp.lang.ada Subject: Re: Ada.Command_Line.Argument_Count question Date: Mon, 21 Sep 2009 16:09:21 +0100 Organization: Aioe.org NNTP Server Message-ID: <5i5fb5t1992bsm8qjfk02l21krs8fks6km@4ax.com> References: <4ab00009$0$282$14726298@news.sunsite.dk> <2191b7e4-c09d-42fe-b446-1ca01e44c1ba@b18g2000vbl.googlegroups.com> NNTP-Posting-Host: RXEkuaSUwmKe0XIGFYSK7A.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.0 X-Newsreader: Forte Agent 2.0/32.652 Cancel-Lock: sha1:6wIumyablRVL5n9m3QHY2zj5DSM= Xref: g2news2.google.com comp.lang.ada:8415 Date: 2009-09-21T16:09:21+01:00 List-Id: On Fri, 18 Sep 2009 18:16:15 -0400, Robert A Duff wrote: >>>> Does Argument_Count() return 3 or 4? I haven't looked at this >>>> paragraph in detail, or what surrounds it, but "the number of >>>> arguments passed to the program invoking the function" sounds a bit >>>> vague. Is the "program invoking the function" the shell, or the >>>> program you're running? >>>3. >>>The program you're running. >> For all implementations? >For all reasonable implementations. It is possible to create a >conforming Ada implementation that does something weird, because >the RM leaves all this implementation-defined. It has to, because >we can't know about all operating systems. Really? Surely the language here is providing a layer of abstraction from the operating system so it should be able to be definitive about whether the program name should be included in the argument count or the list of arguments in Ada.Command_Line?