Re: [eclipse-clp-users] Calling predicates from a module using Java

From: Wit Jakuczun <wit.jakuczun_at_...6...>
Date: Wed, 28 May 2008 09:51:45 +0200
2008/5/28 Wit Jakuczun <wit.jakuczun_at_...6...>:
> Thank you for the answer. I have realised my stupid mistake a minute
> after sending  a post to a group.
>
> By the way I would like to clarify another issue.
> Suppose I have a predicate: test.
> 1) test has arity 1:
>  test(V) :- V is 1.
>  Now using rpc:
>  CompoundTerm ret = engine.rpc(
>                                                new CompoundTermImpl(
>           "test",
>            null)
>   );
>
>  does not work. I get a following exception
> com.parctechnologies.eclipse.CompoundTermImpl.<init>(CompoundTermImpl.java:68)
>
I would like to add that the following code:

CompoundTerm ret = enigne.rpc(
   new CompoundTermImpl( new Object[] {"test", null} ) );

is working.

Best regards
[ Wit Jakuczun w.jakuczun_at_...116... ]
[ WLOG Solutions http://wlogsolutions.com   ]
Received on Wed May 28 2008 - 00:51:49 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 16 2024 - 09:13:20 CEST