Hmm...
As it is, there's an installation step which would be needed to
integrate your code into the J environment (because you use unadorned
load/require to bring in the scripts). And, this installation process
is currently not documented.
To make that documentation easier, maybe it would be acceptable to
include a bootstrap technique which would allow the scripts to be
loaded from anywhere?
In other words, at the beginning of each script which uses load or
require, add the following bit of bootstrap code:
here=: (4!:4 { [:4!:3 ''"_)&.<
here=: ({.~ 1 + <./@i:&'/\') here'here'
Then, instead of (for example) load'gui.ijs' use load here,'gui.ijs'
There are other approaches for this issue (for example, using the
package manager or using whichscript as defined in
misc/miscutils/utils), but at the moment, the above approach seems to
me to be the most straightforward.
(I have also occasionally been thinking about how something analogous
to this approach might be incorporated into the implementation of
load, but I have not been sufficiently motivated to accomplish that.)
Thoughts?
Thanks,
--
Raul
> To unsubscribe from this group and stop receiving emails from it, send an email to
forum+un...@jsoftware.com.