I think the key issues here is (as Henry suggests) that control words are only meaningful inside an explicit definition. The following defines an anonymous explicit verb to contain your control structure. It should work...
3 :0 '' k=. 0 while. k<: 1e2 do. k=. k+1 end. ) On Mon, Apr 3, 2017 at 1:22 PM, Henry Rich <[email protected]> wrote: > 'spelling error' is what you get when you write a meaningless word. a > control word outside an explicit definition is considered meaningless. > Yeah, maybe a different error message would be better. But first look at > > http://code.jsoftware.com/wiki/Vocabulary/ErrorMessages > > Henry Rich > > > On 4/2/2017 9:10 PM, [email protected] wrote: > >> k=.0 >> while. k<: 1e2 do. >> |spelling error >> | while. k<: 1e2 do. >> | ^ >> while. k<: 1e2 do. k=. k+1 end. >> |spelling error >> | while. k<: 1e2 do. k=. k+1 end. >> | ^ >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
