mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 06:20:23 +02:00
(SRFI-55): New section.
This commit is contained in:
parent
8503beb82f
commit
4ea9becb93
1 changed files with 29 additions and 0 deletions
|
@ -38,6 +38,7 @@ get the relevant SRFI documents from the SRFI home page
|
|||
* SRFI-26:: Specializing parameters
|
||||
* SRFI-31:: A special form `rec' for recursive evaluation
|
||||
* SRFI-39:: Parameter objects
|
||||
* SRFI-55:: Requiring Features.
|
||||
* SRFI-60:: Integers as bits.
|
||||
@end menu
|
||||
|
||||
|
@ -2380,6 +2381,34 @@ threads, so the threading behaviour described here should be regarded
|
|||
as Guile-specific.
|
||||
|
||||
|
||||
@node SRFI-55
|
||||
@subsection SRFI-55 - Requiring Features
|
||||
@cindex SRFI-55
|
||||
|
||||
SRFI-55 provides @code{require-extension} which is a portable
|
||||
mechanism to load selected SRFI modules. This is implemented in the
|
||||
Guile core, there's no module needed to get SRFI-55 itself.
|
||||
|
||||
@deffn {library syntax} require-extension clause@dots{}
|
||||
Require each of the given @var{clause} features, throwing an error if
|
||||
any are unavailable.
|
||||
|
||||
A @var{clause} is of the form @code{(@var{identifier} arg...)}. The
|
||||
only @var{identifier} currently supported is @code{srfi} and the
|
||||
arguments are SRFI numbers. For example to get SRFI-1 and SRFI-6,
|
||||
|
||||
@example
|
||||
(require-extension (srfi 1 6))
|
||||
@end example
|
||||
|
||||
@code{require-extension} can only be used at the top-level.
|
||||
|
||||
A Guile-specific program can simply @code{use-modules} to load SRFIs
|
||||
not already in the core, @code{require-extension} is for programs
|
||||
designed to be portable to other Scheme implementations.
|
||||
@end deffn
|
||||
|
||||
|
||||
@node SRFI-60
|
||||
@subsection SRFI-60 - Integers as Bits
|
||||
@cindex SRFI-60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue