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

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

Never mind - I have figured out the right way to do that:
1. Use Pl_Mk_Callable() construct the dynamic function -
parent(daveti,john).
2. Use Pl_Find_Atom("asserta") to get the id for 'asserta'
3. Use Pl_Query_Call(id_of_asserta, 1, pterm_returned_by_callable).
Then magic will happen.

Cheers~
Dave



--
View this message in context: http://gnu-prolog.996310.n3.nabble.com/Is-that-possible-to-call-dynamic-function-in-the-C-interface-tp1177p1178.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.