Aha! So, there has been an explicit decision to not support workspaces.
Just wondering - given that the learning of J has a lot to do with experimentation, a whole load of expressions are tried before finalizing on a form that one wants to store in a script file for later use. And in real life there are interruptions that means the session has to be shut down with an intention of carrying on at a later point in time. I thought that preserving the sessions could be one way of getting back to that context fast. Currently my practice is as follows: 1) Keep a J Session active 2) Keep a J Script file open 3) Experiment with real data in the J Session. 4) When satisfied, transfer the learning & code into the Script file 5) Save the script file. 6) Missing: Save the session that has unfinished experiments.... Since Step 6 is not recommended, how do you accomplish that part? On 10/1/06, bill lam <[EMAIL PROTECTED]> wrote:
Yuvaraj Athur Raghuvir wrote: > Thanks. > > Now I extended this in the following way: > 1) In startup.ijs, I added the following: > > NB. to resume old session > load 'files' > f =: wd'mbopen "" temp' > restore =: fread f > > In my session, now I can call restore to get back the session editor state > of the last save. > > 2) To complement this operation, I need a verb called restorepoint > > restorepoint will save the current session in the file I choose. > > How should I send the entire contents of my session to the 1.ijx that I > would like to use As noted by Chris, each J session is a fresh new session, all globals from any previous session is lost and not stored in ijx. IIRC workspace support in J was decommitted more than 10 years ago. I guess J does not encourage what you intended to do, albeit it might be possible. -- regards, bill ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
