[Jprogramming] Getting J to work with .NET
Raul Miller
rauldmiller at gmail.com
Fri Jul 9 20:21:12 HKT 2010
On Fri, Jul 9, 2010 at 8:15 AM, Mark Needham <m.h.needham at gmail.com> wrote:
> Cool! I changed it a little to work in C#:
>> var session = new Session();
> session.Eval("result=: 2 + 2");
> var result = session.Variable("result");
> Console.Write(result);
>> What would I need to do if I wanted to execute a J script file directly
> rather than just individual expressions?
session.Eval("0!:0<'script.ijs'");
ought to work
Or, if you want a dynamic name, use a variable to identify the script.
--
Raul
More information about the Programming
mailing list