Debian Codegraph @

info/gcl-si/Structures.html

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
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>Structures (GCL SI Manual)</title>
7
8 <meta name="description" content="Structures (GCL SI Manual)">
9 <meta name="keywords" content="Structures (GCL SI Manual)">
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="Function-and-Variable-Index.html" rel="index" title="Function and Variable Index">
15 <link href="Function-and-Variable-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
16 <link href="index.html" rel="up" title="Top">
17 <link href="Iteration-and-Tests.html" rel="next" title="Iteration and Tests">
18 <link href="Operating-System-Definitions.html" rel="prev" title="Operating System Definitions">
19 <style type="text/css">
20 <!--
21 a.summary-letter {text-decoration: none}
22 blockquote.indentedblock {margin-right: 0em}
23 div.display {margin-left: 3.2em}
24 div.example {margin-left: 3.2em}
25 div.lisp {margin-left: 3.2em}
26 kbd {font-style: oblique}
27 pre.display {font-family: inherit}
28 pre.format {font-family: inherit}
29 pre.menu-comment {font-family: serif}
30 pre.menu-preformatted {font-family: serif}
31 span.nolinebreak {white-space: nowrap}
32 span.roman {font-family: initial; font-weight: normal}
33 span.sansserif {font-family: sans-serif; font-weight: normal}
34 ul.no-bullet {list-style: none}
35 -->
36 </style>
37
38
39 </head>
40
41 <body lang="en">
42 <span id="Structures"></span><div class="header">
43 <p>
44 Next: <a href="Iteration-and-Tests.html" accesskey="n" rel="next">Iteration and Tests</a>, Previous: <a href="Operating-System.html" accesskey="p" rel="prev">Operating System</a>, Up: <a href="index.html" accesskey="u" rel="up">Top</a> &nbsp; [<a href="Function-and-Variable-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Function-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p>
45 </div>
46 <hr>
47 <span id="Structures-1"></span><h2 class="chapter">10 Structures</h2>
48
49 <dl>
50 <dt id="index-DEFSTRUCT">Macro: <strong>DEFSTRUCT</strong></dt>
51 <dd><p>Package:LISP
52 </p>
53 <p>Syntax:
54 </p><div class="example">
55 <pre class="example">(defstruct
56 {name | (name {:conc-name | (:conc-name prefix-string) |
57 :constructor | (:constructor symbol [lambda-list]) |
58 :copier | (:copier symbol) |
59 :predicate | (:predicate symbol) |
60 (:include symbol) |
61 (:print-function function) |
62 (:type {vector | (vector type) | list}) |
63 :named | (:static { nil | t})
64 (:initial-offset number)}*)}
65 [doc]
66 {slot-name |
67 (slot-name [default-value-form] {:type type | :read-only flag}*) }*
68 )
69 </pre></div>
70
71 <p>Defines a structure. The doc-string DOC, if supplied, is saved as a STRUCTURE
72 doc and can be retrieved by (documentation &rsquo;NAME &rsquo;structure).
73 STATIC is gcl specific and makes the body non relocatable.
74 </p>
75 <p>See the files misc/rusage.lsp misc/cstruct.lsp, for examples of making
76 a lisp structure correspond to a C structure.
77 </p>
78
79
80 </dd></dl>
81
82 <dl>
83 <dt id="index-HELP">Function: <strong>HELP</strong> <em>(&amp;optional symbol)</em></dt>
84 <dd><p>Package:LISP
85 </p>
86 <p>GCL specific: Prints the documentation associated with SYMBOL. With no
87 argument, this function prints the greeting message to GCL beginners.
88 </p>
89
90 </dd></dl>
91
92
93
94
95 </body>
96 </html>