[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is that possible to call dynamic function in the C interface?
From: |
daveti |
Subject: |
Re: Is that possible to call dynamic function in the C interface? |
Date: |
Tue, 26 Nov 2013 13:45:39 -0800 (PST) |
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.