|Did you know ...||Search Documentation:|
|Casting PlTerm to native C-types|
PlTerm can be cast to the following types:
longif the PlTerm is a Prolog integer or float that can be converted without loss to a long. throws a
long, but might represent fewer bits.
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.