It has been a while since I have attempted any such thing, but you can
also define variables which contain arbitrary text (such as a script),
and you can execute them using the 0!: family of foreigns.

        JDo('0!:110 script');

That said, note that your biggest issue, when you get to deploying the
software you develop, will be isolating errors experienced by your
users. Assuming you wrote decent code, these will typically externally
induced.

So you might want an option to use 0!:111 or some such? It'll be worth
going through a few induced errors (permission denied on a file
reference, for example) *after* you have things working, but before
you release the code.

Thanks,

-- 
Raul


On Sat, Jul 4, 2015 at 9:42 PM, Jon Hough <[email protected]> wrote:
> 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

Reply via email to