|
From: Petr M. <mi...@ph...> - 2007-06-11 19:12:30
|
> > I propose "set history 0" means not to store history commands to the
> > .gnuplot_history file.
>
> I assume you mean that the .gnuplot_history file remains as it was when
> the user entered gnuplot, not that the .gnuplot_history ends up empty.
yes
> > > > >Several of these options may be overridden by similar qualifiers in the
> > > > >history command.
> > > > > set history {<int>}
> > > >
> > > >I tried that "set history -1" makes an error.
> > >
> > >gnuplot> set history -1
> > > ^
> > > Unrecognized option.
> > >
> > >Are you getting something else?
> >
> >
> > I get the same.
> >
> >
> > Of course, that means the following also
> >
> >
> > >Should we be recognizing the sign and then issuing an error if negative?
> >
> >
> > Yes.
>
> I began programming this, but now I hesitate to do so. It would be something
> like
>
> n = 1;
> if (equals(c_token,"-")) {
> n *= -1;
> c_token++;
> } else if (equals(c_token,"+"))
> c_token++;
> n *= int_expression();
I think you can use simply
if (isanumber(c_token)) {
act on integer
}
---
PM
|