You can also add a line to body (do) of loop that is globalvar =: var. The integrated debugger will also let you access the private variables if there is a break inside the loop.
On Tuesday, May 12, 2020, 03:39:54 p.m. EDT, Henry Rich <[email protected]> wrote: Rejected. Way too much work for small gain, and compounded by the fact that it would be the only control word ending in : . And: when the debugging's over, how do you know to replace the : with .? What I do is: debugging globals are assigned with name =: value Then it's easy to make the global change from ' =:' to '=.' Henry Rich On 5/12/2020 3:30 PM, David Lambert wrote: > The proposed for_var: loop globally assigns var . I don't write a lot of > for loops, but sometimes I do, and sometimes these need debugged, and were > this available I'd use it. > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm -- This email has been checked for viruses by AVG. https://www.avg.com ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
