As a (paranoid?) safety device in a "fit'n'forget" utility, I'm trying
to write code to go in a given script which will warn when that script
will unintentionally alter -- or has altered -- an existing name in
the _z_ locale.

NB: "alter", not merely "overwrite" -- though a slick way of detecting
overwrite would be worth knowing too. APL+Win attaches a timestamp to
each fn, which makes this task easy.

It would be nice not to have to maintain -- by-hand -- an explicit
list up-front, of names created by the script.

An allied question: how best can I "snapshot" a given locale -- such
as _z_? That is: create a second temporary locale _sav_ with identical
contents? I can only think of brute-force: enumerating the names in
_z_ and copying them one-by-one to _sav_.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to