completely untested, but if you are making non-noun definitions, then the right argument to : can be a boxed list.
adddouble =: 4 : (unneededtempvar =. 'a=.x+y';'x+a') or if the boxedlist was previously saved adddouble =: 4 : unneededtempvar result is the same as a 2 line definition. ----- Original Message ----- From: Jon Hough <[email protected]> To: "[email protected]" <[email protected]> Cc: Sent: Saturday, July 4, 2015 9:42 PM Subject: [Jprogramming] Feeding multiline verb definitions into JDo It seems that when using the j.dll (libj.do) API from another language, JDo allows the defining of verbs. But I have only managed to define single line verbs so far. It seems adding LF or even '\n' into the command string parameter of JDo does not work (in the sense that it will return an error when using JGetM). Does anyone know if it is possible to do multiline definitions, and if so how? Thanks,Jon ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
