On Sat, Nov 29, 2008 at 6:14 PM, Fraser Jackson <[EMAIL PROTECTED]> wrote: > 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 > ++ > ++
Interesting. It looks like the session manager first gets the contents being loaded inserted, and then after its executed, that gets replaced with those contents mixed with their results. > 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. But that response isn't available until after your script is executed. > There must be a simple way of doing this. I would explicitly capture the results I wanted to capture. -- Raul ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
