Thanks, Björn. I do have effective tools to reverse-engineer the
contents of locales, including an assortment of finds with instant
display.

My problem was psychological not technical: I'd got it into my head
that the code ran in 'jijs' not a numbered locale, with 'jijs' in its
copath. Once Raul alerted me to this, the evidence was staring me in
the face.

Where I do perceive the need for a better 'find' is the entire J
knowledge-base. Yes, there are a number of ways-in (and I ought to
codify them) but it's all a bit hitty-missy.

10 years ago I recall trawling the M$ knowledge base for the answer to
yet-another Excel/ActiveX gotcher, when a junior colleague showed me
that Google made a far better job of finding any bit of Windows gen
than M$'s own tools. It was a *very* junior colleague -- which made me
aware it's possible to get too old for this trade.

...BTW I've just tried Googling SMHWNDP ...hahah! All is explained.


2011/4/20 Björn Helgason <[email protected]>:
> Maybe you could have made a good use of utility like find in locales
>  - an extension to find in files
>
>
> 2011/4/19 Ian Clark <[email protected]>
>
>> Brilliant! Thanks Raul, that does the trick nicely.
>>
>> Kinda obvious in hindsight. newijs_jijs_ will of course not create the
>> "missing" globals, SMHWNDP,  SMNAME, IFIJX in its own locale, but in a
>> separate instantiated object (a numbered locale) so as to allow
>> several IJS windows to be open at once. In fact that's all the
>> numbered locale contains.
>>
>> But I wonder how long it would have taken me to guess that, without help.
>>
>>
>> On Tue, Apr 19, 2011 at 1:29 PM, Raul Miller <[email protected]>
>> wrote:
>> > On Tue, Apr 19, 2011 at 8:11 AM, Ian Clark <[email protected]>
>> wrote:
>> >> It needs an explicit File > Save to save its contents. I would like to
>> >> do this automatically inside ijsstr. But when I add a further line
>> >> like this:
>> >>
>> >> ijsstr=: 3 : 0
>> >>        NB. Open a new IJS window with: (str)y
>> >> cocurrent 'jijs'
>> >> newijs''        NB. create a new IJS window
>> >> wd 'set e *',,y NB. and fill it with the text in y
>> >> save 2          NB. just guessing at: y=2
>> >> )
>> >>
>> >> it fails because necessary globals aren't set up, notably SMHWNDP.
>> >
>> > I am getting:
>> >
>> >   newijs_jijs_''
>> >   save_jijs_ ".>{:conl 1
>> > |domain error: wd
>> > |   dat=.    wd'qd'
>> >
>> > That fails for me, but I think this does what you want:
>> >
>> >   n=: {:conl 1
>> >   save__n ''
>> >
>> > --
>> > Raul
>> > ----------------------------------------------------------------------
>> > 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: [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

Reply via email to