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