1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
<html>
<head><title>LD-ERROR-TRIPLES.html -- ACL2 Version 3.1</title></head>
<body text=#000000 bgcolor="#FFFFFF">
<h2>LD-ERROR-TRIPLES</h2>determines whether a form caused an error during <code><a href="LD.html">ld</a></code>
<pre>Major Section: <a href="MISCELLANEOUS.html">MISCELLANEOUS</a>
</pre><p>
<code>Ld-error-triples</code> is an <code><a href="LD.html">ld</a></code> special (see <a href="LD.html">ld</a>). The accessor is
<code>(ld-error-triples state)</code> and the updater is
<code>(set-ld-error-triples val state)</code>. <code>Ld-error-triples</code> must be
either <code>t</code> or <code>nil</code>. The initial value of <code>ld-error-triples</code> is
<code>t</code>.
<p>
The general-purpose ACL2 read-eval-print loop, <code><a href="LD.html">ld</a></code>, reads forms from
<code><a href="STANDARD-OI.html">standard-oi</a></code>, evaluates them and prints the result to <code><a href="STANDARD-CO.html">standard-co</a></code>.
However, there are various flags that control <code><a href="LD.html">ld</a></code>'s behavior and
<code>ld-error-triples</code> is one of them. If this variable has the value <code>t</code>
then when a form evaluates to 3 values, the first of which is
non-<code>nil</code> and the third of which is <code><a href="STATE.html">state</a></code>, an error is deemed to have
occurred. When an error occurs in evaluating a form, <code><a href="LD.html">ld</a></code> rolls back
the ACL2 <a href="WORLD.html">world</a> to the configuration it had at the conclusion of the
last error-free form. Then <code><a href="LD.html">ld</a></code> takes the action determined by
<code><a href="LD-ERROR-ACTION.html">ld-error-action</a></code>.
<br><br><br><a href="acl2-doc.html"><img src="llogo.gif"></a> <a href="acl2-doc-index.html"><img src="index.gif"></a>
</body>
</html>
|