This is a standard prolog built-in. If a execution within a clause encounters a cut, the
system commits to all choices made since entering the parent goal. This means that no
other clauses of the predicate will be evaluated, and either this clause suceeds or the entire
predicate call fails.
The ! succeeds once and causes the parent goal to fail if encountered during backtracking.
The !,fail combination is often used to indicate final failure of a predicate goal.
repeat, read(X), write(X),nl, X=ende, !,fail.
Always succeeds. No runtime errors.
prolog-process, client-server, object
set_cut , cut , getbacktrack , cutbacktrack