On Sun, 25 Sep 2016, Riccardo (Jack) Lucchetti wrote:
On Sun, 25 Sep 2016, Allin Cottrell wrote:
> I suppose we could add a "set" variable -- maybe something like
>
> set auto_overwite off
>
> such that if any built-in list-generating function would overwrite an
> existing series it terminates with an error.
Or maybe, introduce a --safe option to commands such as diff, ldiff, lags
etc.
That occurred to me too, and it would be fine for _commands_ of this
sort, but would leave out functions that have a similar effect. A
single "set" variable could be made to apply to both cases.
(Internally, both invoke the mechanisms in the library source file
transforms.c, so that would be the place to insert a conditional
guard.)
Allin