Go to the first, previous, next, last section, table of contents.


Control constructs/predicates

Author(s): Daniel Cabeza, Manuel Hermenegildo.

Version: 1.11#222 (2004/5/24, 13:8:7 CEST)

Version of last change: 1.11#204 (2004/2/27, 19:38:32 CET)

This module contains the set of basic control predicates, except the predicates dealing with exceptions, which are in section Exception handling.

Usage and interface (basiccontrol)

Documentation on exports (basiccontrol)

PREDICATE: ,/2:

P , Q

Conjunction (P and Q).

Meta-predicate with arguments: goal,goal.

Usage: * ISO *

PREDICATE: ;/2:

P ; Q

Disjunction (P or Q).

Meta-predicate with arguments: goal;goal.

Usage: * ISO *

PREDICATE: ->/2:

P -> Q

If P then Q else fail, using first solution of P only. Also, (P -> Q ; R), if P then Q else R, using first solution of P only. No cuts are allowed in P.

Meta-predicate with arguments: goal->goal.

Usage: * ISO *

PREDICATE: !/0:

Usage: * ISO *

PREDICATE: \+/1:

\+ P

Goal P is not provable (negation by failure). Fails if P has a solution, and succeeds otherwise. No cuts are allowed in P.

Meta-predicate with arguments: \+goal.

Usage: * ISO *

PREDICATE: if/3:

if(P, Q, R)

If P then Q else R, exploring all solutions of P. No cuts are allowed in P.

Meta-predicate with arguments: if(goal,goal,goal).

Usage:

PREDICATE: true/0:

Usage: * ISO *

PREDICATE: fail/0:

Usage: * ISO *

PREDICATE: repeat/0:

Usage: * ISO *

PREDICATE: false/0:

No further documentation available for this predicate.

PREDICATE: otherwise/0:

No further documentation available for this predicate.

PREDICATE: $metachoice/1:

Usage:

PREDICATE: $metacut/1:

Usage:

PREDICATE: interpret_goal/2:

No further documentation available for this predicate.

PREDICATE: interpret_compiled_goal/2:

No further documentation available for this predicate.

PREDICATE: undefined_goal/1:

No further documentation available for this predicate.

PREDICATE: debug_goal/1:

No further documentation available for this predicate.

Documentation on internals (basiccontrol)

PREDICATE: |/2:

An alias for disjunction (when appearing outside a list). The alias is performed when terms are read in.


Go to the first, previous, next, last section, table of contents.