I’m using: SWI-Prolog version 8.0.2.
I’ve just finished a web search for an example of pengine_ask/3
that shows how to use some of the send options. I haven’t had any luck yet finding one. My hope is that rather than establishing my [onsuccess/onfailure/onerror/onprompt/onoutput/onabort] event handlers during the pengine create call, I can do that dynamically at the time I make the actual pengine_ask/3
call.
The pengine_ask/3
page shows options that appear to be for setting those event handlers?:
http://www.swi-prolog.org/pldoc/doc_for?object=pengine_ask/3
It shows options for that call for [success/failure/error/output/prompt]. Am I correct in thinking these allow you to set the event handlers for the ask
call dynamically? Or are they for something else?
If they are for setting the event handlers:
-
is there an I example I can study to see how to properly format these options for a call to
pengine_ask/3
? -
Are the terms shown for each option (e.g. - success (ID, Terms, Projection, Time, More)), what my event handler can expect to be passed at the time of the callback? Or are they something else?