A simple solution is just to keep all the exports in a separate file and
look at that when you want to find the names you defined globally.
I suppose you could also do a regex search for '_z_ *=[\.:]' .

Marshall

On Sun, Oct 9, 2011 at 1:28 PM, Ian Clark <[email protected]> wrote:

> It's not the top-level call that's the worry. It's all the little
> "specials" I put in _z_ myself.
>
>
> On Sun, Oct 9, 2011 at 6:16 PM, Henry Rich <[email protected]> wrote:
> > I try when possible to avoid exporting function names.  If the user
> > wants to run finesse in the package bridge, he can write
> >
> > finesse_bridge_
> >
> > can't he?  If he wants to cover that with a name in z, that's his
> business.
> >
> > Henry Rich
> >
> > On 10/9/2011 12:57 PM, Ian Clark wrote:
> >> 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<[email protected]>:
> >>> 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<[email protected]>
> >>>
> >>>> 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: [email protected]
> >>> 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
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to