Re: Extracting information from PL_exception()

Kaitain Jones <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <CAMeycMzBCurtXbnPA4u1mMhX5Bnj0MC42GvV1yqEe79KchBqEA@mail.gmail.com>
> you can find some very useful code from SWI-cpp.h, where text extraction
is modelled by means of type cast operators.

Great, thanks for the assist, Carlo. Actually, your reply made me realize I
had barely been leveraging the power of the PlTerm classes.

One thing in the online documentation I don't quite understand, though:

"Additionally, \cfuncref{PL_exception}{0} returns the pending exception in
the current query or 0 if no exception is pending. This can be used to
check the error status after a failing call to, e.g., one of the
unification functions."

Is there messed-up formatting there, or is that intended to be
readable/verbatim syntax?

KJ

>
>
>
-------------- next part --------------
HTML attachment scrubbed and removed
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.