Is that possible to call dynamic function in the C interface?

daveti <[email protected]>
Newsgroups gmane.comp.gnu.prolog.general
Message-ID <[email protected]>
Hi there,

Dave is back again - with a weird question:)
Say we have a dynamic function in the pl file:
:- dynamic(parent/2).
Then there are some bindings too...
parent(bob,mary).
parent(mary,john).
In GProlog, asserta(parent(daveti,john)). will add a new binding. So, how
could I make it using the C interface?
It looks like to me query function is not designed for calling dynamic
function....Or am I wrong?
int Pl_Query_Call(int func, int arity, PlTerm *arg_adr);

Thanks,
Dave



--
View this message in context: http://gnu-prolog.996310.n3.nabble.com/Is-that-possible-to-call-dynamic-function-in-the-C-interface-tp1177.html
Sent from the Users mailing list archive at Nabble.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.