[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Can I protect specified variables from "clear all"
From: |
address@hidden |
Subject: |
Re: Can I protect specified variables from "clear all" |
Date: |
Sun, 17 Jul 2016 16:57:37 +0900 (JST) |
> On Sun, Jul 17, 2016 at 10:16:38AM +0900, Tatsuro MATSUOKA wrote:
> > Hello
> >
> > Some scripts given from other people includes
> >
> > clear all;
> >
> > at the top.
> >
> > However this clear unwanted variables e.g. gnuplot_binary.
>
> Core functions like gnuplot_binary with persistent variables should
> probably call mlock(). I'm not sure, but you could try a respective
> bug report.
>
> > Can I do this?
> >
> > I have consulted "help clear" and I cannot get useful information.
>
> I don't think there is another way than the above.
>
> Olaf
>
My writing is not good.
l set gnuplot_binary to not default one in .octaverc.
clear all makes value of gnuplot_binary to gnuplot (default value).
Tatsuro