|
From: Philipp K. J. <ja...@ie...> - 2009-11-11 00:54:19
|
On Tuesday 10 November 2009 01:00:16 pm Hans-Bernhard Bröker wrote:
> Ethan Merritt wrote:
> [...]
>
> > For one thing, we don't currently have any easy way to undefine all
> > these variables. "show var GPSTAT" would show all of them, but
> > "undefine GPSTAT" doesn't get rid of them. That's fixable, I suppose,
> > but I don't like the variables for another reason...
> >
> > 4) I suggest adding a mechanism for explicitly clearing out the set of
> > stats calculations. One obvious syntax is
> > reset stats
>
> This one deserves generalization. Unless I missed something, we
> currently don't have a command to get rid of any variable (short of
> 'exit' and starting a new session), whereas the number of variables we
> have gnuplot create by itself seems to be increasing all the time (first
> "fit" results, then GPVAL_*, now possibly GPSTAT_*).
>
> I think a generic
>
> unset variable {<name>| pattern <regex> | fit | stats}
>
I fully agree. Zoltan and I discussed this and even
implemented a function that will do that. We just
don't currently expose it as a command - partially
because we did not want to add yet another user-level
command.
But the idea of overloading unset for this purpose is
a good one.
> command would be in order. I would prefer 'unset' over 'reset' here
> because it matches 'show variables' a bit better than 'reset'. It
> should probably be extended to user-defined functions, too. And maybe
> we should even allow
>
> set variable <var>=<expr>
> and
> set function <name>(<arguments>)=<expression>
>
> as an optional syntax instead of the usual <var>=<expr> etc., too.
>
>
> ---------------------------------------------------------------------------
>--- Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day trial. Simplify your report design, integration and deployment - and
> focus on what you do best, core application coding. Discover what's new
> with Crystal Reports now. http://p.sf.net/sfu/bobj-july
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
|