Re: how to debug, not understanding safe_primitive

Torbjörn Lager <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CA+Y3JZhh1vT8KRGAwS0xz5zf1D+qUixpsRAvtBCZsw-W2OHEeQ@mail.gmail.com>
The documentation needs more work, but for the Prolog side of things,
some of them are here:

http://www.swi-prolog.org/pldoc/man?section=pengine-libs

For the JS side, you may want to check out pengines.js for all the detail.

Here's a "fully loaded" pengine.object:

                var pengine = new Pengine({
                    oncreate: handleCreate,
                    onsuccess: handleSuccess,
                    onfailure: handleFailure,
                    onstop, handleStop,
                    onerror:   handleError,
                    onprompt: handlePrompt,
                    onoutput: handleOutput,
                    onabort: handleAbort,
                    ondestroy: handleDestroy
                });

So yes, there is an "onfailure".

Hope that helps.

Best,
Torbjörn


On Fri, Feb 7, 2014 at 6:08 PM, Anne Ogborn <[email protected]> wrote:
> Is there some documentation somehwhere of the possible members of the object
> passed to new Pengine?
>
>
>             var pengine = new Pengine({
>                 oncreate: handleCreate,
>                 onsuccess: handleSuccess,
>                 onerror: handleSuccess         % <= here, borrowing
> handleSuccess...
>             });
>
>
> And is there a separate one for failure?  e.g. in more realistic world
> the simple.html example would want to do something when q ran out of solutions.



-- 
Torbjörn Lager
Professor of General and Computational Linguistics
Department of Philosophy, Linguistics and Theory of Science
University of Gothenburg
Box 200, SE-405 30 Gothenburg, Sweden
Phone: +46317864962
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.