[ Obsolete | The ECLiPSe Built-In Predicates | Reference Manual | Alphabetic Index ]
Delay the Goal on all variables in the term Variables.
- Any Prolog term.
- A callable term.
This built-in predicate is obsolete!
The specified goal Goal is made a suspended goal such that it will be
woken whenever any of the variables in the term Variables is bound (even
to another variable). This predicate is obsolete, a more precise
control over suspending and waking is obtained using make_suspension/3
and insert_suspension/3,4 and with the suspend.pl library.
Modes and Determinism
- (4) instantiation fault
- Goal is not instantiated.
- (5) type error
- Goal is not a callable term.
- (60) referring to an undefined procedure
- Goal does not refer to an existing procedure.
[eclipse 1]: delay(X, writeln(hello)).
X = X
[eclipse 2]: delay(X, writeln(hello)),
X=1, % causes waking
X = 1
[eclipse 3]: delay([X,Y], writeln(X)), X=Y.
X = X
Y = X
suspend / 3, make_suspension / 3, insert_suspension / 3