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 <[EMAIL PROTECTED]> 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
> 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"
>    require 'regex'
>    rxdll_jregex_
> "~binary\jpcre.dll"
>    load 'regex'
>    rxdll_jregex_
> "c:\amisc\jsys\jpcre.dll"
> 
> Perhaps it has something to do with having the "require" in a script vs.
> immediate execution?  In any case, I've solved it for myself but it looks
> like it's a problem I somehow caused for myself, so that's appropriate.
> 
> Devon
> 
> On 4/18/06, Oleg Kobchenko <[EMAIL PROTECTED]> wrote:
> >
> > '~binary' was in j504, in j601 is derived from profile path.
> >
> > Nevertheless, running in j504, I get no issue:
> >
> >    rxdll_jregex_
> > |value error: rxdll_jregex_
> >    require'regex'
> >    rxdll_jregex_
> > "d:\math\j504\jpcre.dll"
> >
> >
> >
> > --- Devon McCormick <[EMAIL PROTECTED]> wrote:
> >
> > > Members of the Forum -
> > >
> > > FYI - so someone may avoid wasting the time I just spent.
> > >
> > > I just uncovered a little "gotcha" - I'm not sure it's a bug exactly -
> > when
> >
> ...
> --
> Devon McCormick
> ^me^ at acm.
> org is my
> preferred e-mail
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to