Content deleted Content added
m WP:BHGbot 6 (List 3): eponymous category first, per MOS:CATORDER; WP:GENFIXES |
DovicKnoble (talk | contribs) Tidied up the language in the last paragraph of the overview, correcting some grammar mistakes and making the meaning clearer. |
||
Line 17:
Whether a constraint is satisfied cannot always be determined when the constraint is encountered. In this case, for example, the value of <code>X</code> is not determined when the last clause is evaluated. As a result, the constraint <code>X>0</code> is not satisfied nor violated at this point. Rather than proceeding in the evaluation of <code>B(X,1)</code> and then checking whether the resulting value of <code>X</code> is positive afterwards, the interpreter stores the constraint <code>X>0</code> and then proceeds in the evaluation of <code>B(X,1)</code>; this way, the interpreter can detect violation of the constraint <code>X>0</code> during the evaluation of <code>B(X,1)</code>, and backtrack immediately if this is the case, rather than waiting for the evaluation of <code>B(X,1)</code> to conclude.
In general, the evaluation of a constraint logic program proceeds
==Semantics==
|