[Jprogramming] detecting name-clash in _z_
Björn Helgason
gosinn at gmail.com
Mon Oct 10 01:06:57 HKT 2011
I guess a utility similar to the package manager is what the new customer
might need/want so he could compare a healthy installation with what he has
got listing all the folders and names in them.
2011/10/9 Ian Clark <earthspotty at gmail.com>
> That's the long way round. (I reckon I can do that.)
>
> I only need the warning (for the end-user). Plus maybe the names
> clashed (for the customer to give to the helpline).
> The aim is to help with new customers hitting time-consuming
> installation problems.
>
>
> 2011/10/9 Björn Helgason <gosinn at gmail.com>:
> > Do you need to get a copy of all the objects?
> >
> > Would it be enough to have a database with information about the objects?
> >
> > In the case of verbs you could place a copy of the visual representation
> of
> > the verb into a noun and take its vital info into the database.
> >
> > You could then put a time stamp on the info when you registered the info.
> >
> > 2011/10/9 Ian Clark <earthspotty at gmail.com>
> >
> >> 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
> >>
> >
> >
> >
> > --
> > Björn Helgason, Verkfræðingur
> > Fornustekkum II
> > 781 Hornafirði,
> > t-póst: gosinn at gmail.com
> > gsm: +3546985532
> > twitter: @flugfiskur
> > http://groups.google.com/group/J-Programming
> >
> >
> > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
> >
> > góður kennari getur stigið á tær án þess að glansinn fari af skónum
> > /|_ .-----------------------------------.
> > ,' .\ / | Með léttri lund verður |
> > ,--' _,' | Dagurinn í dag |
> > / / | Enn betri en gærdagurinn |
> > ( -. | `-----------------------------------'
> > | ) | (\_ _/)
> > (`-. '--.) (='.'=) ♖♘♗♕♔♙
> > `. )----' (")_(") ☃☠
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: gosinn at gmail.com
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming
Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
góður kennari getur stigið á tær án þess að glansinn fari af skónum
/|_ .-----------------------------------.
,' .\ / | Með léttri lund verður |
,--' _,' | Dagurinn í dag |
/ / | Enn betri en gærdagurinn |
( -. | `-----------------------------------'
| ) | (\_ _/)
(`-. '--.) (='.'=) ♖♘♗♕♔♙
`. )----' (")_(") ☃☠
More information about the Programming
mailing list