[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] 6.7.4 system interfaces



On 05/20/2011 12:31 AM, Alex Shinn wrote:
> On Fri, May 20, 2011 at 12:26 AM, Per Bothner<per@x>  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@x   http://per.bothner.com/

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