summaryrefslogtreecommitdiffstats
path: root/srfi.txi
blob: 2ef0bc8386587463bcd524f8a5e25a159096d352 (plain)
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
@code{(require 'srfi)}
@ftindex srfi

@noindent Implements @dfn{Scheme Request For Implementation} (SRFI) as
@cindex Scheme Request For Implementation
described at @url{http://srfi.schemers.org/}

@noindent The Copyright terms of each SRFI states:
@quotation
"However, this document itself may not be modified in any way, ..."
@end quotation

@noindent Therefore, the specification of SRFI constructs must not be
quoted without including the complete SRFI document containing
discussion and a sample implementation program.


@defmac cond-expand <clause1> <clause2> @dots{}


@emph{Syntax:}
Each @r{<clause>} should be of the form

@format
@t{(@r{<feature>} @r{<expression1>} @dots{})}
@end format

where @r{<feature>} is a boolean expression composed of symbols and
`and', `or', and `not' of boolean expressions.  The last @r{<clause>}
may be an ``else clause,'' which has the form

@format
@t{(else @r{<expression1>} @r{<expression2>} @dots{})@r{.}}
@end format

The first clause whose feature expression is satisfied is expanded.
If no feature expression is satisfied and there is no else clause, an
error is signaled.

SLIB @code{cond-expand} is an extension of SRFI-0,
@url{http://srfi.schemers.org/srfi-0/srfi-0.html}.
@end defmac