Raul Miller wrote:
I believe that the session manager never discards any part of the
session (except when you exit or manually delete part of your session).

Thus:

  s1=:smread_jijs_''
  +/~i.2
0 1
1 2
  s2=:smread_jijs_''
  <];._2 s2 (}.~#) s1
+---------------------+
|   +/~i.2            |
|0 1                  |
|1 2                  |
|   s2=:smread_jijs_''|
+---------------------+

I agree that happens when you are using the session manager, but the following shows it does not when smread is executed within a script.

  a=.3
  b =. 2 3 4
  a+/b
5 6 7
  s1 =: smread_jijs_ ''
  +/~i.2
0 1
1 2
  s2 =: smread_jijs_ ''
 <];._2 s2 (}.~#) s1
+------------------------+
|   +/~i.2               |
|0 1                     |
|1 2                     |
|   s2 =: smread_jijs_ ''|
+------------------------+

NB.  Define a script  smread.ijs ========================
NB.  This has exactly the sequence of commands in the
NB.  in the previous session, but a different result.
s1 =: smread_jijs_ ''
+/~i.2
s2 =: smread_jijs_ ''
<];._2 s2 (}.~#) s1
NB.======================================================

  loadd 'c:\users\fraser\j602-user\temp\smread.ijs'
  s1 =: smread_jijs_ ''
  +/~i.2
0 1
1 2
  s2 =: smread_jijs_ ''
   <];._2 s2 (}.~#) s1
++
++


I want the response of the interpreter to the sequence of J sentences
in a noun and to have that available during execution of the script.

There must be a simple way of doing this.

Fraser
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to