[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] (command-line) needs to specify argv[0] behavior
Per Bothner scripsit:
> The definitions of (command-line) is:
>
> Returns the command line arguments passed to the process
> as a list of strings.
>
> It needs to clarify if this list includes the command used to
> invoke the process - i.e. C's argv[0].
>
> Making it implementation-dependent makes it useless.
> However, it is possible to make the first car be implementation-dependent.
That was the intention. Fixed in trunk.
> Allowing command-line (and command-invoker) to return a list of
> immutable strings
> (like symbol->string does) would avoid the need for an extra copy operation
> on Kawa, but that is pretty minor.
Added: "It is an error to mutate any of these strings",
and similarly for get-environment-variable(s).
--
John Cowan cowan@x http://ccil.org/~cowan
If a traveler were informed that such a man [as Lord John Russell] was
leader of the House of Commons, he may well begin to comprehend how the
Egyptians worshiped an insect. --Benjamin Disraeli
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports