This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Thread-safe eval()


Jost Boekemeier wrote:

kawa fails to run the following simple test code

Scheme s = new Scheme();
s.eval(" (letrec ((f (lambda(v) (if (= v 0) 1 (* (f (-
v 1)) v)))))(f 155)) ");

when the above code is evaluated in more than one
thread.  How do I write the above code so that it can
be evaluated in more than one thread at the same time?

Hm. I would expect that to work. Which version of Kawa are you using? Could you try the CVS version to see if that works?

Otherwise, could you send a self-contained testcase so I can
look into it?
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]