Section "foreign"

The Dogelog player facilitates defining Prolog predicates that call the host language. The host language call register() adds a host language function by a given predicate indicator. The flag FFI_FUNC determines whether the functions return value should be ignored or not. After regis-tration, the designated predicate can be called from within Prolog.

The following host language calls are provided:

FFI_FUNC: host language
Option that says the host language function has a return value.
register(F,N,J,K): host language
Add a host language function J with options K by the predicate indicator F/N to the knowledge base. The registration is staged, so clear() will remove.

Use Privacy (c) 2005-2026 XLOG Technologies AG