| 1 |
<html><head><title>XLISP *unbound*</title> |
| 2 |
|
| 3 |
<link rel="stylesheet" type="text/css" href="reference.css"> |
| 4 |
|
| 5 |
</head> |
| 6 |
|
| 7 |
<body> |
| 8 |
|
| 9 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 10 |
<a href="../manual/contents.htm">Contents</a> | |
| 11 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 12 |
<a href="../examples/examples.htm">Examples</a> | |
| 13 |
<a href="reference-index.htm">Reference</a> |
| 14 |
|
| 15 |
<hr> |
| 16 |
|
| 17 |
<h1>*unbound*</h1> |
| 18 |
|
| 19 |
<hr> |
| 20 |
|
| 21 |
<p><table cellpadding="0" cellspacing="0" style="margin-left:10px"><tbody> |
| 22 |
<tr valign="top"> |
| 23 |
<td><nobr>Type:</nobr></td> |
| 24 |
<td><nobr> - </nobr></td> |
| 25 |
<td width="100%"><nobr>system constant</nobr></td> |
| 26 |
</tr> |
| 27 |
<tr valign="top"> |
| 28 |
<td><nobr>Source:</nobr></td> |
| 29 |
<td><nobr> - </nobr></td> |
| 30 |
<td width="100%"><nobr>xlinit.c, xlsym.c</nobr></td> |
| 31 |
</tr> |
| 32 |
</tbody></table></p> |
| 33 |
|
| 34 |
<h2>Syntax</h2> |
| 35 |
|
| 36 |
<dl> |
| 37 |
<dt> *unbound*</dt> |
| 38 |
</dl> |
| 39 |
|
| 40 |
<h2>Description</h2> |
| 41 |
|
| 42 |
<p>The *unbound* system constant is used to indicate when a symbol has no |
| 43 |
value. *unbound* is set to the value *unbound*. This means that the system |
| 44 |
thinks the symbol *unbound* has no value.</p> |
| 45 |
|
| 46 |
<h2>Examples</h2> |
| 47 |
|
| 48 |
<pre class="example"> |
| 49 |
*unbound* <font color="#008844">; error: unbound variable</font> |
| 50 |
(setq a 5) <font color="#008844">; returns 5</font> |
| 51 |
a <font color="#008844">; returns 5</font> |
| 52 |
(setq a '*unbound*) <font color="#008844">; returns *UNBOUND*</font> |
| 53 |
a <font color="#008844">; error: unbound variable</font> |
| 54 |
</pre> |
| 55 |
|
| 56 |
<p>See the |
| 57 |
<a href="../manual/xlisp-man-011.htm#unbound">*unbound*</a> |
| 58 |
system constant in the <nobr>XLISP 2.0</nobr> manual.</p> |
| 59 |
|
| 60 |
<p><nobr> <a href="#top">Back to Top</nobr></a></p> |
| 61 |
|
| 62 |
<hr> |
| 63 |
|
| 64 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 65 |
<a href="../manual/contents.htm">Contents</a> | |
| 66 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 67 |
<a href="../examples/examples.htm">Examples</a> | |
| 68 |
<a href="reference-index.htm">Reference</a> |
| 69 |
|
| 70 |
</body></html> |