For throwaway definitions, the JHS (web-based ide) scratch window is good too. On Jun 27, 2015 11:20 PM, "Raul Miller" <[email protected]> wrote:
> For multi-line definitions like this, you should be putting your > script in a file. > > Hit control-N to get a blank editor window. > > Thanks, > > -- > Raul > > > On Sat, Jun 27, 2015 at 10:24 PM, Daniel Roe <[email protected]> wrote: > > I'm just learning J so this is a bit of a newbie question. > > 1) I open up the J session window > > 2) I type in a definition of a verb from the Learning J document - > Chapter 12... > > > > dog =: 3 : 0 > > if. y>90 do. 'too hot' > > elseif. y<30 do. 'too cold' > > elseif. 1 do. 'OK' > > end. > > ) > > It's the porridge - too hot - too cold - example - I called it dog > > Now I want to go back in and change the parameters a bit - for example I > want to make too cold be < 40 not 30.3) I put the cursor in the definition > and change the 30 to a 40 > > > > 4) With the cursor I select the entire definition and then copy it with > a CTRL-C > > > > 5) I hit he enter key until I get the waiting for input cursor down > below everything > > 6) I paste in the modified definition with a CTRL-V and hit enter > > 7) I get a syntax error message. > > I can't believe that one must re-type the entire definition just to make > a change. What am I doing wrong? > > Dan > > > > > > ---------------------------------------------------------------------- > > 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
