next up previous contents index
Next: Examples for storing foreign Up: The Foreign Include File Previous: Foreign Code Hooks   Contents   Index


Storing foreign data

This section provides some hints for handling foreign data in Prolog. With foreign data, we refer to data that is used by foreign language predicates and needs to be passed around in Prolog. Excluding combinations, there are three principal options for storing such data


\begin{itemlist}
\item[Natural Prolog data]
E.i.\ using the representation one ...
...eign data. Again, this
functor may be wrapped in a compound term.
\end{itemlist}

The choice may be guided using the following distinctions


\begin{itemlist}
\item[Is the data opaque to Prolog]
With \lq opaque' data, we ref...
...ointer may be passed. See \secref{foreignnondet}.
\end{enumerate}\end{itemlist}



Subsections

Dr. Richard Botting 2001-12-12