[Jprogramming] gotcha: "load" vs. "require" for "regex"
Devon McCormick
devonmcc at gmail.com
Wed Apr 19 09:23:37 HKT 2006
I just installed J 6.01 and the behavior gets better.
It still didn't behave nicely when I moved the "require" to the end of my
startup.ijs (in J 5.04).
It's not worth spending any more time on - especially since it goes away in
the
new version.
Thanks...
Devon
On 4/18/06, Oleg Kobchenko <olegykj at yahoo.com> wrote:
>
> I believe, it may be caused by jpath, which
> in that place in the profile pipeline
> returns effectively `]`. One possibility
> is that pseudo-path '~binary' is not
> established yet.
>
> Could you try to move the
> require'regex'
> to the very bottom of profile.ijs
> and accompany it with a couple of
> tests:
> smoutput 5!:5<'rxdll_jregex_'
> smoutput jpath'~binary'
>
> Then start new J. Should output
>
> '"d:\...\j601\jpcre.dll" '
> d:\...\j601
>
>
>
>
> --- Devon McCormick <devonmcc at gmail.com> wrote:
>
> > Oleg -
> >
> > I tried your experiment but got something different:
> > rxdll_jregex_
> > "~binary\jpcre.dll"
> >
> > I tracked this down to a "require" of 'regex' in one of the script files
> > loaded by my
>
...
--
Devon McCormick
^me^ at acm.
org is my
preferred e-mail
More information about the Programming
mailing list