[ Type Testing | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
is_handle(?Term)
Succeeds if Term is an external data handle.
- ?Term
- Prolog term.
Description
Used to test whether Term is a handle for external data.
Such handles can be created by external predicates using the
ECLiPSe C or C++ API.
Fail Conditions
Fails if Term is not an external data handle.
Resatisfiable
No.
Examples
?- bag_create(B), is_handle(B).
B = 'BAG'(16'edc90b18)
Yes (0.00s cpu)
?- is_handle(_).
No (0.00s cpu)
?- is_handle(42).
No (0.00s cpu)
See Also
is_event / 1, type_of / 2, xget / 3, xset / 3