| 1 |
<html><head><title>XLISP *print-case*</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>*print-case*</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 variable</nobr></td> |
| 26 |
</tr> |
| 27 |
<tr valign="top"> |
| 28 |
<td><nobr>Source:</nobr></td> |
| 29 |
<td><nobr> - </nobr></td> |
| 30 |
<td width="100%"><nobr>xlprin.c</nobr></td> |
| 31 |
</tr> |
| 32 |
</tbody></table></p> |
| 33 |
|
| 34 |
<h2>Syntax</h2> |
| 35 |
|
| 36 |
<dl> |
| 37 |
<dt> *print-case*</dt> |
| 38 |
</dl> |
| 39 |
|
| 40 |
<h2>Description</h2> |
| 41 |
|
| 42 |
<p>*print-case* is a system variable that allows a user to specify how |
| 43 |
symbols are to be printed by XLISP. If *print-case* is set to ':downcase', |
| 44 |
all symbols will be printed in lower case characters. If *print-case* is set |
| 45 |
to ':upcase', all symbols will be printed in upper case characters. If |
| 46 |
*print-case* is set to anything other than ':upcase' or ':downcase', all |
| 47 |
symbols will be printed in upper case characters. The default value for |
| 48 |
*print-case* is ':upcase'.</p> |
| 49 |
|
| 50 |
<h2>Examples</h2> |
| 51 |
|
| 52 |
<pre class="example"> |
| 53 |
(setq *print-case* :downcase) <font color="#008844">; returns :downcase</font> |
| 54 |
(setq a 'b) <font color="#008844">; returns b</font> |
| 55 |
|
| 56 |
(setq *print-case* 'foo) <font color="#008844">; returns FOO</font> |
| 57 |
(setq a 'b) <font color="#008844">; returns B</font> |
| 58 |
|
| 59 |
(setq *print-case* :upcase) <font color="#008844">; returns :UPCASE</font> |
| 60 |
(setq a 'b) <font color="#008844">; returns B</font> |
| 61 |
</pre> |
| 62 |
|
| 63 |
<p><b>Common Lisp:</b> Common LISP supports a third keyword ':capitalize' to |
| 64 |
print the first character of symbol names in upper-case. XLISP does not |
| 65 |
support this. In XLISP, if *print-case* is set to ':capitalize', all |
| 66 |
characters in symbols names will be printed in upper-case characters.</p> |
| 67 |
|
| 68 |
<p>See the |
| 69 |
<a href="../manual/xlisp-man-011.htm#print-case">*print-case*</a> |
| 70 |
system variable in the <nobr>XLISP 2.0</nobr> manual.</p> |
| 71 |
|
| 72 |
<p><nobr> <a href="#top">Back to Top</nobr></a></p> |
| 73 |
|
| 74 |
<hr> |
| 75 |
|
| 76 |
<a href="../start.htm">Nyquist / XLISP 2.0</a> - |
| 77 |
<a href="../manual/contents.htm">Contents</a> | |
| 78 |
<a href="../tutorials/tutorials.htm">Tutorials</a> | |
| 79 |
<a href="../examples/examples.htm">Examples</a> | |
| 80 |
<a href="reference-index.htm">Reference</a> |
| 81 |
|
| 82 |
</body></html> |