|Did you know ...||Search Documentation:|
|Converting PlTerm to native C and C++ types (version 2)|
These are deprecated and replaced by the various
PlTerm can be converted to the following types:
PlTermis a Prolog integer or float that can be converted without loss to a long. throws a
long, but might represent fewer bits.
PlTermrepresents a Prolog integer or float.
CVT_ALL|CVT_WRITE|BUF_RING, which implies Prolog atoms and strings are converted to the represented text. All other data is handed to write/1. If the text is static in Prolog, a direct pointer to the string is returned. Otherwise the text is saved in a ring of 16 buffers and must be copied to avoid overwriting.
In addition, the Prolog type (`PL_VARIABLE`,‘PL_ATOM`, ...‘PL_DICT`) can be determined using the type() method. There are also boolean methods that check the type: