| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/transitional.dtd"> |
| 2 |
<HTML> |
| 3 |
<HEAD> |
| 4 |
<TITLE>Macro ONCE-ONLY</TITLE> |
| 5 |
<LINK REL="stylesheet" HREF="style.css" type="text/css"> |
| 6 |
</HEAD> |
| 7 |
<BODY> |
| 8 |
|
| 9 |
<p><p><i>Macro</i> <b>ONCE-ONLY</b></a></a> <p> |
| 10 |
<p><b>Syntax:</b><p> |
| 11 |
|
| 12 |
<p> |
| 13 |
|
| 14 |
<p><b>once-only</b> <i>(name*) form*</i> |
| 15 |
<p> |
| 16 |
<p><b>Arguments and Values:</b><p> |
| 17 |
<p> |
| 18 |
<i>name</i>---a <a href="http://www.lispworks.com/documentation/HyperSpec/Body/glo_s.html#symbol"><i>symbol</i></a></a>. <p> |
| 19 |
|
| 20 |
<i>form</i>---a <a href="http://www.lispworks.com/documentation/HyperSpec/Body/glo_f.html#form"><i>form</i></a></a>. <p> |
| 21 |
|
| 22 |
<p> |
| 23 |
<p><b>Description:</b><p> |
| 24 |
<p>Meant to be used in macro code, <b>once-only</b> guards against |
| 25 |
multiple evaluation of its arguments in macroexpansion code. Any |
| 26 |
concise description would be far too vague to grasp, but <a |
| 27 |
href="http://groups.google.com/group/comp.lang.lisp/browse_frm/thread/1783554653afad7f/f6357129c8c1c002?rnum=1&_done=%2Fgroup%2Fcomp.lang.lisp%2Fbrowse_frm%2Fthread%2F1783554653afad7f%2F940b6ebd2d1757f4%3F#doc_f6357129c8c1c002">this |
| 28 |
thread on comp.lang.lisp</a> does a decent job of explaining what |
| 29 |
<b>once-only</b> does. |
| 30 |
|
| 31 |
<p><p><b>Notes:</b></p> |
| 32 |
|
| 33 |
<p>The description here is frustratingly non-descriptive, and I |
| 34 |
apologize for that. If you understand <b>once-only</b> and can give a |
| 35 |
better explanation, I would be very grateful—not to mention |
| 36 |
completely awed. |
| 37 |
|
| 38 |
<p class="footer"><hr><a href="index.html">Manual Index</a></p> |
| 39 |
|
| 40 |
</body></html> |