[Jprogramming] Getting J to work with .NET

bill lam bbill.lam at gmail.com
Mon Jul 12 08:28:40 HKT 2010


Did verb and define actually defined in your profile (if any)?
what if replacing that line by
 centigrade =: 3 : 0
Пнд, 12 Июл 2010, Mark Needham писал(а):
> It's working for me with some statements in the ijs file but not when I
> define a verb for some reason:
>> ijs file
>> result =: 2 + 2
>> square =: *:
>> centigrade =: verb define
> t1 =. y - 32
> t2 =. t1 * 5
> t3 =. t2 % 9
> )
>> Then I've got this code:
>> var cSharpSession = new CSharpSession();
>> cSharpSession.Load("C:/Playbox/JForTheWin/WillJWork/bin/Debug/script.ijs");
> cSharpSession.Eval("mark =: centigrade 5");
> var csharpResult = cSharpSession.Variable("mark");
> Console.Write(csharpResult);
>> where CSharpSession is the one from the other tutorial.
>> It blows up on trying to load the script with a 'value error' but it seems
> to me that the definition is correct? Is there something else I need to do?
>> Cheers, Mark
>>> On 9 July 2010 14:12, Alex Rufon <alex_rufon at ist-systems.com> wrote:
>> [---=| TOFU protection by t-prot: 120 lines snipped |=---]

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008年08月24日
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3


More information about the Programming mailing list

AltStyle によって変換されたページ (->オリジナル) /