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.

_______________________________________________
Users-prolog mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/users-prolog

Reply via email to