Debian Codegraph @

info/gcl/restart_002dname.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
6 <title>restart-name (ANSI and GNU Common Lisp Document)</title>
7
8 <meta name="description" content="restart-name (ANSI and GNU Common Lisp Document)">
9 <meta name="keywords" content="restart-name (ANSI and GNU Common Lisp Document)">
10 <meta name="resource-type" content="document">
11 <meta name="distribution" content="global">
12 <meta name="Generator" content="makeinfo">
13 <link href="index.html" rel="start" title="Top">
14 <link href="Conditions-Dictionary.html" rel="up" title="Conditions Dictionary">
15 <link href="with_002dcondition_002drestarts.html" rel="next" title="with-condition-restarts">
16 <link href="restart_002dcase.html" rel="prev" title="restart-case">
17 <style type="text/css">
18 <!--
19 a.summary-letter {text-decoration: none}
20 blockquote.indentedblock {margin-right: 0em}
21 div.display {margin-left: 3.2em}
22 div.example {margin-left: 3.2em}
23 div.lisp {margin-left: 3.2em}
24 kbd {font-style: oblique}
25 pre.display {font-family: inherit}
26 pre.format {font-family: inherit}
27 pre.menu-comment {font-family: serif}
28 pre.menu-preformatted {font-family: serif}
29 span.nolinebreak {white-space: nowrap}
30 span.roman {font-family: initial; font-weight: normal}
31 span.sansserif {font-family: sans-serif; font-weight: normal}
32 ul.no-bullet {list-style: none}
33 -->
34 </style>
35
36
37 </head>
38
39 <body lang="en">
40 <span id="restart_002dname"></span><div class="header">
41 <p>
42 Next: <a href="with_002dcondition_002drestarts.html" accesskey="n" rel="next">with-condition-restarts</a>, Previous: <a href="restart_002dcase.html" accesskey="p" rel="prev">restart-case</a>, Up: <a href="Conditions-Dictionary.html" accesskey="u" rel="up">Conditions Dictionary</a> &nbsp; </p>
43 </div>
44 <hr>
45 <span id="restart_002dname-_005bFunction_005d"></span><h4 class="subsection">9.2.38 restart-name [Function]</h4>
46
47 <p><code>restart-name</code> <i>restart</i> &rArr; <i>name</i>
48 </p>
49 <span id="Arguments-and-Values_003a_003a-154"></span><h4 class="subsubheading">Arguments and Values::</h4>
50
51 <p><i>restart</i>&mdash;a <i>restart</i>.
52 </p>
53 <p><i>name</i>&mdash;a <i>symbol</i>.
54 </p>
55 <span id="Description_003a_003a-208"></span><h4 class="subsubheading">Description::</h4>
56
57 <p>Returns the name of the <i>restart</i>,
58 or <b>nil</b> if the <i>restart</i> is not named.
59 </p>
60 <span id="Examples_003a_003a-135"></span><h4 class="subsubheading">Examples::</h4>
61
62 <div class="example">
63 <pre class="example"> (restart-case
64 (loop for restart in (compute-restarts)
65 collect (restart-name restart))
66 (case1 () :report &quot;Return 1.&quot; 1)
67 (nil () :report &quot;Return 2.&quot; 2)
68 (case3 () :report &quot;Return 3.&quot; 3)
69 (case1 () :report &quot;Return 4.&quot; 4))
70 &rArr; (CASE1 NIL CASE3 CASE1 ABORT)
71 ;; In the example above the restart named ABORT was not created
72 ;; explicitly, but was implicitly supplied by the system.
73 </pre></div>
74
75 <span id="See-Also_003a_003a-182"></span><h4 class="subsubheading">See Also::</h4>
76
77 <p><a href="compute_002drestarts.html">compute-restarts</a>
78 </p>
79 <p><a href="find_002drestart.html">find-restart</a>
80 </p>
81
82
83
84 </body>
85 </html>