Dan Bron wrote: > > First off, why do you want to reload a script? Are you programmatically > re-writing its contents? Do you want to re-execute it to reset state > (i.e. reassign globals to the default)? > > If the latter, then I guess your question is "How do I reload the current > script?". The answer to that is still load , but it requires you know > the name of the current script. That, you can discover with 4!:3 and > 4!:4 . >
I do this all the time in emacs. You have two windows, one the ijs file and the other the J session. With focus on the ijs window, ^C^C reloads the ijs file in the J session. I use it to develop "source code", by moving text from the J session to the ijs file. Best wishs, John ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
