I originally wrote:
>  Now if only 1!:1 1 would work in scripts... 

and Marshall Lochbaum responded:
> ... Then, when you see that your sentence does not have the order of
> execution you intended, add parenthesis or the slightly more
> obfuscated identity function to accomplish the task. 
>    ;: '(1!:1) 1'
> +-+-+--+-+-+-+
> |(|1|!:|1|)|1|
> +-+-+--+-+-+-+
>    ;: '1!:1 ]1'
> +-+--+-+-+-+
> |1|!:|1|]|1|
> +-+--+-+-+-+

I'm sorry for not making this clearer in my original comment.  The 
spelling  (1!:1) 1  doesn't work any better than  1!:1 1  .  (It hangs 
the script.)  The DICTIONARY states that this particular foreign 
conjunction (reading from the keyboard) WILL NOT WORK in scripts.

Thus, my earlier question (and it was implied in my comment) 
essentially was: if this doesn't work in scripts, then what does?  I 
need the capability of grabbing user input from a textual prompt.


Harvey

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

Reply via email to