/
eulispcl7.html
639 lines (631 loc) · 26.4 KB
/
eulispcl7.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
<html xmlns="http://www.w3.org/1999/xhtml"
>
<head><title>7 Conventions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<meta name="originator" content="TeX4ht (http://www.cse.ohio-state.edu/~gurari/TeX4ht/)" />
<!-- html,1,next,noannex,xhtml -->
<meta name="src" content="eulisp.tex" />
<meta name="date" content="2010-10-20 18:07:00" />
<link rel="stylesheet" type="text/css" href="eulisp.css" />
</head><body
>
<!--l. 374--><div class="crosslinks"><p class="noindent">[<a
href="eulispcl8.html" >next</a>] [<a
href="eulispcl6.html" >prev</a>] [<a
href="eulispcl6.html#taileulispcl6.html" >prev-tail</a>] [<a
href="#taileulispcl7.html">tail</a>] [<a
href="eulisp.html#eulispcl7.html" >up</a>] </p></div>
<h3 class="clauseHead"> 7 <a
id="x9-110007"></a>Conventions</h3>
<a
id="dx9-11001"></a>
<!--l. 1--><p class="noindent" >This section defines the conventions employed in this text, how
definitions will be laid out, the typefaces to be used, the
meta-language used in descriptions and the naming conventions. A
later section (<a
href="eulispcl8.html#x10-470008">8<!--tex4ht:ref: sec:definitions --></a>) contains definitions of the terms used in this
text.
</p><!--l. 7--><p class="noindent" >A standard function<a
id="dx9-11002"></a> denotes an immutable top-lexical binding of
the defined name. All the definitions in this text are bindings in
some module except for the special form operators, which have no
definition anywhere. All bindings and all the special form operators
can be renamed. <a
id="x9-11003r1"></a>
</p><div class="note">
<span
class="cmr-8">NOTE</span><span
class="cmr-8"> 1</span> <span
class="cmr-8">A description making mention of “an x” where “x” is the</span>
<span
class="cmr-8">name a class usually means “an instance of </span><span
class="cmtt-8"><x></span><span
class="cmr-8">”.</span></div>
<!--l. 18--><p class="noindent" >Frequently, a class-descriptive name will be used in the argument
list of a function description to indicate a restriction on the domain
to which that argument belongs. In the case of a function, it is an
error to call it with a value outside the specified domain. A
generic function can be defined with a particular domain
and/or range. In this case, any new methods must respect
the domain and/or range of the generic function to which
they are to be attached. The use of a class-descriptive name
in the context of a generic function definition defines the
intention of the definition, and is not necessarily a policed
restriction.
</p><!--l. 28--><p class="noindent" >The <span
class="cmti-9">result-class </span>of an operation, except in one case, refers to
a primitive or a defined class described in this definition.
The exception is for predicates. Predicates are defined to
return either the empty list—written <a
href="eulispcl16.html#x20-587009r2"><span
class="cmtt-9">()</span></a>—representing the
<a
href="eulispcl9.html#x11-580009.5.0.5"><span
class="cmti-9">boolean</span></a> value false<a
id="dx9-11004"></a>, or any value other than <a
href="eulispcl16.html#x20-587009r2"><span
class="cmtt-9">()</span></a>, representing
true<a
id="dx9-11005"></a>.
</p>
<h4 class="sclauseHead"> 7.1 <a
id="x9-120007.1"></a>Layout and Typography</h4>
Both layout and fonts are used to help in the description of <span
class="cmr-8">E</span><span
class="cmr-7">U</span>
<span
class="cmr-8">L</span><span
class="cmr-7">ISP</span>. A language element is defined as an entry with its name as
the heading of a clause, coupled with its classification. The syntax
notation used is based on that described in <span class="cite">[<a
href="eulispcl3.html#Xiso9899">ISO/IEC 9899:1999</a>]</span>
with modifications to support the specification of a return type and
to improve clarity. Syntactic categories (non-terminals) are
indicated by <span
class="cmti-9">italic </span>type, and literal words and characters
(terminals) by <span
class="cmtt-9">constant width </span>type. A colon (<span
class="cmti-9">:</span>) following a
non-terminal introduces its definition. Alternative definitions are
listed on separate lines, except when prefaced by the words “one
of”. An optional symbol is indicated by the subscript “<span
class="cmti-9">opt</span>”, a list
of zero or more occurrences of a symbol are indicated by the
superscript “<span
class="cmti-9">*</span>”, and a list of one or more occurrences of
a symbol are indicated by the superscript “<span
class="cmti-9">+</span>”. Examples
of several kinds of entry are now given. Some subsections
of entries are optional and are only given where it is felt
necessary.
<hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-12001r1"></a><span
class="cmbx-9">7.1.1 </span><span
class="cmtt-9">a-special-form</span>
<a
id="Q1-9-13"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <span
class="cmti-9">special operator</span><a
id="dx9-12002"></a><a
id="dx9-12003"></a> </i></b></div><br /> <hr />
<h5 class="syntaxssclauseHead"> 7.1.1.1 <a
id="x9-130007.1.1.1"></a><span
class="cmbx-8">Syntax</span></h5><a
id="dx9-13001"></a>
<!--l. 24--><p class="noindent" ><div class="framebox-l"
style="width:27.14em;"> </p><div class="minipage"><table
cellpadding="0" border="0" cellspacing="0"
class="tabbing"><tr
style="vertical-align:baseline;" class="tabbing"><td
class="tabbing"><span
class="cmti-9">a-special-form-form</span><span
class="cmtt-9">: </span><span
class="cmsy-9">→</span><span
class="cmti-9">result-class</span></td></tr></table>
<!--l.10 24--> <table
cellpadding="0" border="0" cellspacing="0"
class="tabbing"><tr
style="vertical-align:baseline;" class="tabbing"><td style="width:42px;"
class="tabbing"> </td><td
class="tabbing"><span
class="cmtt-9">( </span><a
href="#x9-12001r1"><span
class="cmtt-9">a-special-form</span></a> <span
class="cmti-9">form-1 </span><span
class="cmtt-9">... </span><span
class="cmti-9">form-n</span><span
class="cmmi-6">opt</span> <span
class="cmtt-9">)</span></td></tr></table>
<!--l.10 24--> </div></div>
<h5 class="likesyntaxssclauseHead"><a
id="x9-140007.1.1.1"></a><span
class="cmbx-8">Arguments</span></h5>
<!--l. 26--><p class="noindent" >
</p><dl class="arguments1"><dt class="arguments">
<span
class="cmti-9">form-1 </span>: </dt><dd
class="arguments">
<!--l. 27--><p class="noindent" >description of structure and rôle of <span
class="cmti-9">form-1</span>.<br
class="newline" /><img
src="eulisp0x.png" alt=".
.." class="vdots" />
</p></dd><dt class="arguments">
<span
class="cmti-9">form-n</span><span
class="cmmi-6">opt</span> : </dt><dd
class="arguments">
<!--l. 29--><p class="noindent" >description of structure and rôle of optional argument
<span
class="cmti-9">form-n</span><span
class="cmmi-6">opt</span>.</p></dd></dl>
<!--l. 33--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-150007.1.1.1"></a><span
class="cmbx-8">Result</span></h5>
<!--l. 34--><p class="noindent" >A description of the result and, possibly, its <span
class="cmti-9">result-class</span>.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-160007.1.1.1"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 37--><p class="noindent" >Any additional information defining the behaviour of <span
class="cmtt-9">a-special-form</span>
or the syntax category <a
href="#x9-130007.1.1.1"><span
class="cmti-9">a-special-form-form</span></a>.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-170007.1.1.1"></a><span
class="cmbx-8">Examples</span></h5>
<!--l. 41--><p class="noindent" >Some examples of use of the special form and the behaviour that
should result.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-180007.1.1.1"></a><span
class="cmbx-8">See</span><span
class="cmbx-8"> also</span></h5>
<!--l. 45--><p class="noindent" >Cross references to related entries. <hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-18001r2"></a><span
class="cmbx-9">7.1.2 </span><span
class="cmtt-9">a-function</span>
<a
id="Q1-9-20"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <span
class="cmti-9">function</span><a
id="dx9-18002"></a><a
id="dx9-18003"></a> </i></b></div><br /> <hr />
</p>
<h5 class="syntaxssclauseHead"> 7.1.2.1 <a
id="x9-190007.1.2.1"></a><span
class="cmbx-8">Signature</span></h5> <a
id="dx9-19001"></a>
<a
id="dx9-19002"></a>
<!--l. 55--><p class="noindent" ><div class="framebox-l"
style="width:27.14em;"> </p><div class="minipage"><table
cellpadding="0" border="0" cellspacing="0"
class="tabbing"><tr
style="vertical-align:baseline;" class="tabbing"><td
class="tabbing"><span
class="cmtt-9">(</span><a
href="#x9-18001r2"><span
class="cmtt-9">a-function</span></a> <span
class="cmti-9">argument-1 </span><span
class="cmtt-9">... </span><span
class="cmti-9">argument-n</span><span
class="cmmi-6">opt</span><span
class="cmtt-9">)</span></td></tr></table>
<!--l.10 55--> <table
cellpadding="0" border="0" cellspacing="0"
class="tabbing"><tr
style="vertical-align:baseline;" class="tabbing"><td style="width:14px;"
class="tabbing"> </td><td
class="tabbing"><span
class="cmsy-9">→ </span><span
class="cmti-9">result-class</span></td></tr></table>
<!--l.10 55--> </div></div>
<h5 class="likesyntaxssclauseHead"><a
id="x9-200007.1.2.1"></a><span
class="cmbx-8">Arguments</span></h5>
<!--l. 57--><p class="noindent" >
</p><dl class="arguments1"><dt class="arguments">
<span
class="cmti-9">argument-1 </span>: </dt><dd
class="arguments">
<!--l. 58--><p class="noindent" >information about the class or classes of <span
class="cmti-9">argument-1</span>.<br
class="newline" /><img
src="eulisp1x.png" alt=".
.." class="vdots" />
</p></dd><dt class="arguments">
<span
class="cmti-9">argument-n</span><span
class="cmmi-6">opt</span> : </dt><dd
class="arguments">
<!--l. 61--><p class="noindent" >information about the class or classes of the optional
argument <span
class="cmti-9">argument-n</span>.</p></dd></dl>
<!--l. 65--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-210007.1.2.1"></a><span
class="cmbx-8">Result</span></h5>
<!--l. 66--><p class="noindent" >A description of the result and, possibly, its <span
class="cmti-9">result-class</span>.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-220007.1.2.1"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 69--><p class="noindent" >Any additional information about the actions of <span
class="cmtt-9">a-function</span>.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-230007.1.2.1"></a><span
class="cmbx-8">Examples</span></h5>
<!--l. 72--><p class="noindent" >Some examples of calling the function with certain arguments and
the result that should be returned.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-240007.1.2.1"></a><span
class="cmbx-8">See</span><span
class="cmbx-8"> also</span></h5>
<!--l. 76--><p class="noindent" >Cross references to related entries.
<hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-24001r3"></a><span
class="cmbx-9">7.1.3 </span><span
class="cmtt-9">a-generic</span>
<a
id="Q1-9-27"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <span
class="cmti-9">generic function</span><a
id="dx9-24002"></a><a
id="dx9-24003"></a><a
id="dx9-24004"></a> </i></b></div><br /> <hr />
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-250003"></a><span
class="cmbx-8">Generic Arguments</span></h5>
<!--l. 80--><p class="noindent" >
</p><dl class="genericargs1"><dt class="genericargs">
<span
class="cmti-9">argument-a </span><span
class="cmtt-9"><class-a> </span>: </dt><dd
class="genericargs">
<!--l. 81--><p class="noindent" >means that <span
class="cmti-9">argument-a </span>of <span
class="cmtt-9">a-generic </span>must be an
instance of <span
class="cmtt-9"><class-a> </span>and that <span
class="cmti-9">argument-a </span>is one of the
arguments on which <span
class="cmtt-9">a-generic </span>specializes. Furthermore,
each method defined on <span
class="cmtt-9">a-generic </span>may specialize only on
a subclass of <span
class="cmtt-9"><class-a> </span>for <span
class="cmti-9">argument-a</span>.<br
class="newline" /><img
src="eulisp2x.png" alt="..
." class="vdots" />
</p></dd><dt class="genericargs">
<span
class="cmti-9">argument-n </span>: </dt><dd
class="genericargs">
<!--l. 87--><p class="noindent" >means that (i) <span
class="cmti-9">argument-n </span>is an instance of <span
class="cmtt-9"><object></span>, <span
class="cmti-9">i.e.</span>
it is unconstrained, (ii) <span
class="cmtt-9">a-generic </span>does not specialize on
<span
class="cmti-9">argument-n</span>, (iii) no method on <span
class="cmtt-9">a-generic </span>can specialize
on <span
class="cmti-9">argument-n</span>.</p></dd></dl>
<!--l. 93--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-260003"></a><span
class="cmbx-8">Result</span></h5>
<!--l. 94--><p class="noindent" >A description of the result and, possibly, its class.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-270003"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 97--><p class="noindent" >Any additional information about the actions of <span
class="cmtt-9">a-generic</span>. This
can take two forms depending on the function. This will probably
be in general terms, since the actual behaviour will be determined
by the methods.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-280003"></a><span
class="cmbx-8">See</span><span
class="cmbx-8"> also</span></h5>
<!--l. 103--><p class="noindent" >Cross references to related entries.
<hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-28001r4"></a><span
class="cmbx-9">7.1.4 </span><span
class="cmtt-9">a-generic <class-a></span>
<a
id="Q1-9-32"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <span
class="cmti-9">method</span><a
id="dx9-28002"></a><a
id="dx9-28003"></a> </i></b></div><br /> <hr />
</p><!--l. 107--><p class="noindent" >(A method on <span
class="cmtt-9">a-generic </span>with the following specialized
arguments.)
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-290004"></a><span
class="cmbx-8">Specialized Arguments</span></h5>
<!--l. 109--><p class="noindent" >
</p><dl class="specargs1"><dt class="specargs">
<span
class="cmti-9">argument-a </span><span
class="cmtt-9"><class-a> </span>: </dt><dd
class="specargs">
<!--l. 110--><p class="noindent" >means that <span
class="cmti-9">argument-a </span>of the method must be an instance
of <span
class="cmtt-9"><class-a></span>. Of course, this argument must be one which
was defined in <span
class="cmtt-9">a-generic </span>as being open to specialization
and <span
class="cmtt-9"><class-a> </span>must be a subclass of the class.<br
class="newline" /><img
src="eulisp3x.png" alt=".
.." class="vdots" />
</p></dd><dt class="specargs">
<span
class="cmti-9">argument-n </span>: </dt><dd
class="specargs"> <!--l. 115--><p class="noindent" >means that (i) <span
class="cmti-9">argument-n </span>is an instance of <span
class="cmtt-9"><object></span>, <span
class="cmti-9">i.e.</span>
it is unconstrained, because <span
class="cmtt-9">a-generic </span>does not specialize
on <span
class="cmti-9">argument-n</span>.</p></dd></dl>
<!--l. 120--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-300004"></a><span
class="cmbx-8">Result</span></h5>
<!--l. 121--><p class="noindent" >A description of the result and, possibly, its class.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-310004"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 124--><p class="noindent" >Any additional information about the actions of this method
attached to <span
class="cmtt-9">a-generic</span>.
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-320004"></a><span
class="cmbx-8">See</span><span
class="cmbx-8"> also</span></h5>
<!--l. 128--><p class="noindent" >Cross references to related entries.
</p><!--l. 130--><p class="noindent" ><hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-32001r5"></a><span
class="cmbx-9">7.1.5 </span><span
class="cmtt-9"><a-condition></span>
<a
id="Q1-9-37"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <a
href="eulispcl13.html#x17-245001r2"><span
class="cmtt-9"><condition></span></a>  <span
class="cmti-9">condition</span><a
id="dx9-32002"></a> </i></b></div><br /> <hr />
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-330005"></a><span
class="cmbx-8">Initialization Options</span></h5>
<!--l. 132--><p class="noindent" >
</p><dl class="initoptions1"><dt class="initoptions">
<span
class="cmtt-9">keyword-a </span><span
class="cmti-9">value-a </span>: </dt><dd
class="initoptions">
<!--l. 133--><p class="noindent" >means that an instance of <span
class="cmtt-9"><a-condition> </span>has a slot called
<span
class="cmtt-9">keyword-a </span>which should be initialized to <span
class="cmti-9">value-a</span>, where
<span
class="cmti-9">value-a </span>is often the name of a class, indicating that <span
class="cmti-9">value-a</span>
should be an instance of that class and a description of
the information that <span
class="cmti-9">value-a </span>is supposed to provide about
the exceptional situation that has arisen.<br
class="newline" /><img
src="eulisp4x.png" alt="..
." class="vdots" />
</p></dd><dt class="initoptions">
<span
class="cmtt-9">keyword-n </span><span
class="cmti-9">value-n </span>: </dt><dd
class="initoptions">
<!--l. 140--><p class="noindent" >As for <span
class="cmtt-9">keyword-a</span>.</p></dd></dl>
<!--l. 143--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-340005"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 144--><p class="noindent" >Any additional information about the circumstances in which the
condition will be signalled.
</p><!--l. 147--><p class="noindent" ><hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-34001r6"></a><span
class="cmbx-9">7.1.6 </span><span
class="cmtt-9"><a-class></span>
<a
id="Q1-9-40"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <a
href="eulispcl11.html#x13-74005r2"><span
class="cmtt-9"><class></span></a>  <span
class="cmti-9">class</span><a
id="dx9-34002"></a><a
id="dx9-34003"></a> </i></b></div><br /> <hr />
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-350006"></a><span
class="cmbx-8">Initialization Options</span></h5>
<!--l. 149--><p class="noindent" >
</p><dl class="initoptions1"><dt class="initoptions">
<span
class="cmtt-9">keyword-a </span><span
class="cmti-9">value-a </span>: </dt><dd
class="initoptions">
<!--l. 150--><p class="noindent" >means that <span
class="cmtt-9"><a-class> </span>has an keyword whose name is
<span
class="cmtt-9">keyword-a </span>and the description will usually say of what
class (or classes) <span
class="cmti-9">value-a </span>should be an instance. This
keyword is required.<br
class="newline" /><img
src="eulisp5x.png" alt=".
.." class="vdots" />
</p></dd><dt class="initoptions">
<span
class="cmtt-9">[keyword-n </span><span
class="cmti-9">value-n</span><span
class="cmtt-9">] </span>: </dt><dd
class="initoptions">
<!--l. 154--><p class="noindent" >The enclosing square brackets denote that this keyword is
optional. Otherwise the interpretation of the definition is
as for <span
class="cmtt-9">keyword-a</span>.</p></dd></dl>
<!--l. 160--><p class="noindent" >
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-360006"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 161--><p class="noindent" >A description of the rôle of <span
class="cmtt-9"><a-class></span>.
</p><!--l. 163--><p class="noindent" ><hr /> <div style="text-align: left; width: 50%; float: left;"> <a
id="x9-36001r7"></a><span
class="cmbx-9">7.1.7 </span><span
class="cmtt-9">a-constant </span><a
href="#x9-34001r6"><span
class="cmtt-9"><a-class></span></a>
<a
id="Q1-9-43"></a>
</div><div style="text-align: right; width: 50%; float: left;"><b><i> <span
class="cmti-9">constant</span><a
id="dx9-36002"></a><a
id="dx9-36003"></a><a
id="dx9-36004"></a> </i></b></div><br /> <hr />
</p>
<h5 class="likesyntaxssclauseHead"><a
id="x9-370007"></a><span
class="cmbx-8">Remarks</span></h5>
<!--l. 166--><p class="noindent" >A description of the constant of type <a
href="#x9-34001r6"><span
class="cmtt-9"><a-class></span></a>.
</p><!--l. 595--><p class="noindent" >
</p>
<h4 class="sclauseHead"> 7.2 <a
id="x9-380007.2"></a>Naming</h4>
Naming conventions are applied in the descriptions of primitive
and defined classes as well as in the choice of other function names.
Here is a list of the conventions and some examples of their
use.
<h5 class="subdefinitionHead"> 7.1 <a
id="x9-390007.1"></a><span
class="cmbx-9">“</span><span
class="cmtt-9"><name></span><span
class="cmbx-9">” wrapping: </span></h5> By convention, classes have names
which begin with “<span
class="cmtt-9"><</span>” and end with “<span
class="cmtt-9">></span>”.
<h5 class="subdefinitionHead"> 7.2 <a
id="x9-400007.2"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">binary</span><span
class="cmbx-9">” prefix: </span></h5> The two argument version of a n-ary
argument function. For example <a
href="eulispcl16.html#x20-695001r20"><span
class="cmtt-9">binary+</span></a> is the two argument
(generic) function corresponding to the n-ary argument <a
href="eulispcl16.html#x20-665003r5"><span
class="cmtt-9">+</span></a>
function.
<h5 class="subdefinitionHead"> 7.3 <a
id="x9-410007.3"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">-class</span><span
class="cmbx-9">” suffix: </span></h5> The name of a metaclass of a set of related
classes. For example, <a
href="eulispcl17.html#x22-957025r3"><span
class="cmtt-9"><function-class></span></a>, which is the class of
<a
href="eulispcl11.html#x13-82004r2"><span
class="cmtt-9"><simple-function></span></a>, <a
href="eulispcl11.html#x13-82007r3"><span
class="cmtt-9"><generic-function></span></a> and any of their
subclasses. The exception is <a
href="eulispcl11.html#x13-74005r2"><span
class="cmtt-9"><class></span></a> itself which is the default
metaclass. The prefix should describe the general domain of the
classes in question, but not necessarily any particular class in the
set. <h5 class="subdefinitionHead"> 7.4 <a
id="x9-420007.4"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">generic-</span><span
class="cmbx-9">” prefix: </span></h5> The generic version of the function
named by the stem.
<h5 class="subdefinitionHead"> 7.5 <a
id="x9-430007.5"></a><span
class="cmbx-9">hyphenation: </span></h5> Function and class names made up
of more than one word are hyphenated, for example:
<span
class="cmtt-9">compute-specialized-slot-class</span>.
<h5 class="subdefinitionHead"> 7.6 <a
id="x9-440007.6"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">make-</span><span
class="cmbx-9">” prefix: </span></h5> For most primitive or defined classes there is
constructor function, which is usually named <span
class="cmtt-9">make-</span><span
class="cmti-9">class-name</span>.
<h5 class="subdefinitionHead"> 7.7 <a
id="x9-450007.7"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">!</span><span
class="cmbx-9">” suffix: </span></h5> A destructive function is named by a “<span
class="cmtt-9">!</span>” suffix,
for example the destructive version of <a
href="eulispcl16.html#x20-409001r24"><span
class="cmtt-9">reverse</span></a> is named
<a
href="eulispcl16.html#x20-412001r25"><span
class="cmtt-9">reverse!</span></a>.
<h5 class="subdefinitionHead"> 7.8 <a
id="x9-460007.8"></a><span
class="cmbx-9">“</span><span
class="cmtt-9">?</span><span
class="cmbx-9">” suffix: </span></h5> A predicate function is named by a “<span
class="cmtt-9">?</span>” suffix, for
example <a
href="eulispcl16.html#x20-598005r9"><span
class="cmtt-9">cons?</span></a>.
<!--l. 1--><div class="crosslinks"><p class="noindent">[<a
href="eulispcl8.html" >next</a>] [<a
href="eulispcl6.html" >prev</a>] [<a
href="eulispcl6.html#taileulispcl6.html" >prev-tail</a>] [<a
href="eulispcl7.html" >front</a>] [<a
href="eulisp.html#eulispcl7.html" >up</a>] </p></div>
<!--l. 1--><p class="noindent" ><a
id="taileulispcl7.html"></a> </p>
</body></html>