[ Advanced Control and Suspensions | Reference Manual | Alphabetic Index ]
Succeeds if GoalList is the list of all goals currently delayed.
- List, nil or variable.
Unifies GoalList with the list of all goals currently delayed. If there
are no goals delayed, GoalList is unified with nil. The order of goals
in the list is implementation-dependent. Note that if GoalList is nil,
the system only checks if there are any delayed goals and it does not
actually construct the list.
Modes and Determinism
- (5) type error
- GoalList is instantiated but not to a list or nil.
[eclipse]: X > 0, delayed_goals(L).
X = _d89
L = [_d89 > 0]
_d89 > 0
[eclipse]: X > 0, delayed_goals([1 > 0]).
X = 1
X > 0, delayed_goals().
delayed_goals(X > 0). (Error 5).
delayed_goals(0). (Error 5).
delayed_goals / 2, delayed_goals_number / 2, subcall / 2