call_with_args/3¶
The goal catch( _Goal_, _Exception_, _Action_)
tries to execute goal Goal.
If during its execution, Goal throws an exception E' and this exception unifies with Exception, the exception is considered to be caught and Action is executed. If the exception E' does not unify with Exception, control again throws the exception.
The top-level of YAP maintains a default exception handler that is responsible to capture uncaught exceptions.
call_with_args(+ Name,...,? Ai,...)*
Meta-call where Name is the name of the procedure to be called and the Ai are the arguments. The number of arguments varies between 0 and 10. New code should use call/N
for better portability.
If Name is a complex term, then call_with_args/n behaves as call/n:
call(p(X1,...,Xm), Y1,...,Yn) :- p(X1,...,Xm,Y1,...,Yn).