For those of you who haven't looked at the first script to run when J
starts, "bin\profile.ijs" lately, it now loads a script where one can
modify settings, particularly the libraries J uses. "~home/_jprofile.ijs"
for Windows or "/.jprofile.ijs" for unix is loaded and run if it exists.
This is done after various library names have been found and saved in names
local to "profile.ijs" but before they are used to complete J
initialization, available for us to change if desired.

What is interesting, particularly on this thread, is that profile.ijs uses
"0!:0" to load the script instead of "load". As a result the loaded script
sees the local names defined in profile.ijs and can modify them.

An interesting way to deal with passing local names to another script.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to