From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Ada.Command_Line.Argument_Count question
Date: Mon, 21 Sep 2009 17:17:04 +0200
Date: 2009-09-21T17:17:04+02:00 [thread overview]
Message-ID: <2zfavtu2p608.p9wwiwijsnyx.dlg@40tude.net> (raw)
In-Reply-To: 5i5fb5t1992bsm8qjfk02l21krs8fks6km@4ax.com
On Mon, 21 Sep 2009 16:09:21 +0100, John McCabe wrote:
> On Fri, 18 Sep 2009 18:16:15 -0400, Robert A Duff
> <bobduff@shell01.TheWorld.com> 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?
Yes, but it certainly not as an argument of. If this functionality has to
be supported then as a set of separate functions, like:
Get_Image_Name (the file containing the program image),
Get_Install_Name (the name used to invoke the program),
Get_Command_Line (the user input caused execution of this instance),
Get_Instance_Count (number of instances running)
etc.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2009-09-21 15:17 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-15 20:58 Ada.Command_Line.Argument_Count question
2009-09-15 21:37 ` Gautier write-only
2009-09-16 6:21 `
2009-09-16 18:43 ` Keith Thompson
2009-09-22 19:52 ` Gautier write-only
2009-09-22 20:00 ` Hyman Rosen
2009-09-23 0:20 ` Gautier write-only
2009-09-23 1:07 ` Adam Beneschan
2009-09-23 13:03 ` Hyman Rosen
2009-09-23 16:06 ` Gautier write-only
2009-09-24 0:31 ` Björn Persson
2009-09-24 1:11 ` Adam Beneschan
2009-09-25 12:25 ` Stephen Leake
2009-09-15 21:55 ` Adam Beneschan
2009-09-16 6:20 `
2009-09-16 10:41 ` Jeffrey R. Carter
2009-09-17 13:50 ` John McCabe
2009-09-18 5:12 ` sjw
2009-09-18 15:03 ` John McCabe
2009-09-18 22:16 ` Robert A Duff
2009-09-21 15:09 ` John McCabe
2009-09-21 15:17 ` Dmitry A. Kazakov [this message]
2009-09-21 19:44 ` sjw
2009-09-22 11:01 ` John McCabe
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox