'~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 > I changed some preliminary "load"s to "require"s. I made this change > because > I noticed this style widely used on the code examples on the J Wiki. Also, > I've > previously had problems with circularity in loading modules (that then load > other > modules which in turn load one of the original modules-> infinite loop) and > this > seemed like the proper way to deal with it. > > However, this broke some old code. Specifically, in the "regex" module, the > value > of rxdll_jregex_ became "~binary\jpcre.dll" instead of being properly pathed > by > jpath '~binary\jpcre.dll'. > > It looks like this is because an anonymous function, near the beginning of > "regex.ijs", which defines "rxdll" does not get run if I "require 'regex'" > instead of "load 'regex'". > > I guess this is proper behaviour but perhaps the regex module should be > re-written > so that it works in either case. > > Devon > -- > Devon McCormick > ^me^ at acm. > org is my > preferred e-mail __________________________________________________ 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
