Re: [Scheme-reports] 6.7.4 system interfaces Alex Shinn (20 May 2011 07:32 UTC)
Re: [Scheme-reports] 6.7.4 system interfaces Per Bothner (20 May 2011 07:48 UTC)
Re: [Scheme-reports] 6.7.4 system interfaces John Cowan (20 May 2011 14:38 UTC)

Re: [Scheme-reports] 6.7.4 system interfaces Per Bothner 20 May 2011 07:47 UTC

On 05/20/2011 12:31 AM, Alex Shinn wrote:
> On Fri, May 20, 2011 at 12:26 AM, Per Bothner<per@bothner.com>  wrote:
>> On 05/19/2011 04:00 PM, John Cowan wrote:
>>> Andy Wingo scripsit:
>>>
>>>> Does `command-line' include the equivalent of argv[0] ?
>>>
>>> System-dependent.  JVM/CLR systems have no analogue of argv[0].
>>
>> That makes standardizing command-line completely useless.
>
> I think John meant to say that the "value" of the zeroth
> element of (command-line) is system-dependent - it is
> supposed to represent the program name, and may just
> be "<unknown>" in some implementations.

That is ok, though it would be better if there were some
standardized representation of "<unknown>".  I think either
"" or #f would be reasonable.

I would read the question:
     Does `command-line' include the equivalent of argv[0]
as:
     is the first element (car) of command-line argv[0] or argv[1]
and we *really* don't want that to be unspecified.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports