Dan,

The utility would be much appreciated.

You're right about the danger of assigning to a variable that is sometimes a 
noun and sometimes a verb.  It was done purely because fewer errors resulted 
when I was trying to build it.  It seems necessary for writing the controlA 
definition below, though the actual assignment is a 0 noun. (evaluation during 
defintion)

finallyC_z_ =: 2 : 'u :: ((v)][:13!:12(''''[]))'
flag1_z_ =: (] controlA_z_ =: 1 : ('flag1_z_ =: 1';'o=. u y';'flag1_z_ =: 
0';'o';':';'flag1_z_ =: 1';'o=. x u y';'flag1_z_ =: 0';'o') ( finallyC 
('flag1_z_' assign 0:))) 0



>>>
PS: However, I think I did see someone voice the desire to express an arbitrary 
J script on a single line, for situations where space is limited. I wrote a 
utility for this purpose a few years ago for use with Ambrus' jeval IRC bots. 
I'm on the road now (going to see if I can leave to play golf [don't hold your 
breath]), but I can post it later if there's interest. Or maybe a quick search 
on the J Wiki (under Community/IRC) will turn up something.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to