[Jprogramming] gotcha: "load" vs. "require" for "regex"
Devon McCormick
devonmcc at gmail.com
Wed Apr 19 21:58:44 HKT 2006
Yes - my startup script loads my utility library which, in turn, loads some
other
modules. The utility library load is the last think "startup" does.
As I mentioned, I have a work-around and the problem does not manifest
itself in J 6.01,
so it's really a non-issue as far as I'm concerned.
On 4/18/06, Chris Burke <cburke at jsoftware.com> wrote:
>
> Devon McCormick wrote:
> > 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
> > profile. Once I change this to a "load", I get the fully qualified
> name.
> > If I change
> > it back to "require", I can get this:
> > rxdll_jregex_
> > "~binary\jpcre.dll"
>
> It looks to me as if you have a non-standard startup. If the startup.ijs
> script has:
>
> require 'regex'
>
> then the rxdll is defined correctly.
>
> Have you changed the normal J start up sequence, or put "require
> 'regex'" into another file loaded at start up?
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
--
Devon McCormick
^me^ at acm.
org is my
preferred e-mail
More information about the Programming
mailing list