Re: [eclipse-clp-users] Getting data back to C++ from Eclipse using yield/2

From: Wit Jakuczun <wit.jakuczun_at_gmail.com>
Date: Mon, 9 Jun 2008 15:01:14 +0200
2008/6/9  <Archana.Dixit_at_cognizant.com>:
>
>
> Thanks for the reply.
>
> Here condition (EC_resume() ==EC_yield) is getting satisfied, but the
> condition (EC_resume(W,Result)==EC_yield) isn't.
>
> EC_resume(W, Result) returns value as 1 but not 4, which is probably the
> value given to the  EC_yield .
>
Basing on
http://eclipse.crosscoreop.com/doc/bips/kernel/externals/yield-2.html
I have only one explanation. Your prolog code is wrong. Try to do this
in the same way as in the example.

Are you sure you need to use yield/resume model? It is not necessary
in most cases.

Best regards
-- 
[ Wit Jakuczun  w.jakuczun_at_wlogsolutions.com ]
[ WLOG Solutions http://wlogsolutions.com   ]
Received on Mon Jun 09 2008 - 06:01:18 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET