11.3.29 call/_57507 [ISO]

Synopsis

call(+P)

Proves (executes) P.

call(+P,?Q,...)

Executes the goal obtained by augmenting P by the remaining arguments.

Arguments

:P
callable, must be nonvar
Q
term ...

Description

If P is instantiated to an atom or compound term, then the goal call(P) is executed exactly as if that term appeared textually in its place, except that any cut (`!') occurring in P only cuts alternatives in the execution of P.

Backtracking

Depends on P.

Exceptions

Call errors (see ref-sem-exc).

See Also

ref-sem-cal.


Send feedback on this subject.