mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-30 15:00:21 +02:00
(SLIB): Note `system' redefined by (ice-9 slib). Tweak
`require' example.
This commit is contained in:
parent
f9825394b5
commit
de5eb61998
1 changed files with 12 additions and 8 deletions
|
@ -11,16 +11,20 @@ must be executed:
|
||||||
@end smalllisp
|
@end smalllisp
|
||||||
|
|
||||||
@cindex @code{require}
|
@cindex @code{require}
|
||||||
@code{require} can then be used as described in
|
@code{require} can then be used in the usual way (@pxref{Requesting
|
||||||
@ref{Top, , SLIB, slib, The SLIB Manual}.
|
Features,,, slib, The SLIB Manual}). For example,
|
||||||
|
|
||||||
For example:
|
@example
|
||||||
|
(use-modules (ice-9 slib))
|
||||||
|
(require 'primes)
|
||||||
|
(probably-prime? 13)
|
||||||
|
@result{} #t
|
||||||
|
@end example
|
||||||
|
|
||||||
@smalllisp
|
Note that @code{(ice-9 slib)} provides a new definition of
|
||||||
guile> (use-modules (ice-9 slib))
|
@code{system}, one giving a plain exit code return value, as per the
|
||||||
guile> (require 'primes)
|
SLIB specification (@pxref{System Interface,,, slib, The SLIB
|
||||||
guile> (probably-prime? 13)
|
Manual}).
|
||||||
@end smalllisp
|
|
||||||
|
|
||||||
@menu
|
@menu
|
||||||
* SLIB installation::
|
* SLIB installation::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue