On Sun, 2008-08-10 at 10:27 -0700, Abdulaziz Ghuloum wrote:
> On Aug 9, 2008, at 5:23 PM, Derick Eddington wrote:
>
> > - else if(strcmp("--", argv[i]) == 0){
> > + else if(strcmp("--", argv[i]) == 0
> > + || strcmp("--r6rs-script", argv[i]) == 0
> > + || strcmp("--script", argv[i]) == 0){
> > return 0;
>
> I don't like this since it requires changing the C command line
> parser every time I change ikarus's arguments (e.g., you already
> forgot -O0, -O1, -O2).
I was only attempting to protect the user program's arguments and for
that the -ON currently don't matter, but I understand what you mean
about design-for-the-future and maintenance.
I did forget --compile-dependencies, which in ikarus.main.ss uses the
arguments after its script name.
> I think the better option is to have all C arguments (which are
> only "-b bootfile" now)
and -h
> and all Scheme arguments to come
> before the user's program arguments.
ikarus.main.ss already does that.
I agree a less-maintenance-required solution would be nicer, but how
could it be done?
On Sun, 2008-08-10 at 10:27 -0700, Abdulaziz Ghuloum wrote: "--r6rs- script" , argv[i]) == 0
> On Aug 9, 2008, at 5:23 PM, Derick Eddington wrote:
>
> > - else if(strcmp("--", argv[i]) == 0){
> > + else if(strcmp("--", argv[i]) == 0
> > + || strcmp(
> > + || strcmp("--script", argv[i]) == 0){
> > return 0;
>
> I don't like this since it requires changing the C command line
> parser every time I change ikarus's arguments (e.g., you already
> forgot -O0, -O1, -O2).
I was only attempting to protect the user program's arguments and for for-the- future and maintenance.
that the -ON currently don't matter, but I understand what you mean
about design-
I did forget --compile- dependencies, which in ikarus.main.ss uses the
arguments after its script name.
> I think the better option is to have all C arguments (which are
> only "-b bootfile" now)
and -h
> and all Scheme arguments to come
> before the user's program arguments.
ikarus.main.ss already does that.
I agree a less-maintenanc e-required solution would be nicer, but how
could it be done?