Next: POSIX, Up: Guile Modules
Before the SLIB facilities can be used, the following Scheme expression must be executed:
(use-modules (ice-9 slib))
require can then be used in the usual way (see Require). For example,
(use-modules (ice-9 slib))
(require 'primes)
(probably-prime? 13)
=> #t
Note that the following Guile core functions are overridden by
(ice-9 slib), to implement SLIB specified semantics.
delete-file#t for success or #f for failure
(see Input/Output), as opposed to the
Guile core version unspecified for success and throwing an error for
failure (see File System).
provided?and and or
forms combining symbols (see Feature), as
opposed to the Guile core taking only plain symbols (see Feature Manipulation).
open-filer, rb, w or wb for the open
mode (see Input/Output), as opposed to
the Guile core version taking a string (see File Ports).
systemstatus:exit-val etc
(see Processes).