From: John McCabe <john@nospam.assen.demon.co.uk>
Subject: Re: Ada.Command_Line.Argument_Count question
Date: Thu, 17 Sep 2009 14:50:55 +0100
Date: 2009-09-17T14:50:55+01:00 [thread overview]
Message-ID: <bgf4b5hng7ujjq28m5peanifnam33lbbsh@4ax.com> (raw)
In-Reply-To: 4ab00009$0$282$14726298@news.sunsite.dk
On Tue, 15 Sep 2009 22:58:49 +0200, Thomas L�cke <"tl at ada-dk.org">
wrote:
>The RM has this to say about Argument_Count:
>
>"If the external execution environment supports passing arguments to a
>program, then Argument_Count returns the number of arguments passed to
>the program invoking the function. Otherwise it returns 0. The meaning
>of �number of arguments� is implementation defined."
>
>I'm wondering what that last sentence mean? Is the RM trying to tell me
>that Argument_Count cannot be trusted to yield the same result on
>different systems (Unix, BSD, Windows, Linux and so on)?
>
>Or am I missing the point?
Are you also thinking of whether the program itself counts as an
argument?
For example if, on the command line, I type:
prog1.exe a b c
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?
John
next prev parent reply other threads:[~2009-09-17 13:50 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 [this message]
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
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