Next: , Up: Guile Modules


6.1 SLIB

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
Returns #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?
Accepts a feature specification containing and and or forms combining symbols (see Feature), as opposed to the Guile core taking only plain symbols (see Feature Manipulation).
open-file
Takes a symbol r, rb, w or wb for the open mode (see Input/Output), as opposed to the Guile core version taking a string (see File Ports).
system
Returns a plain exit code 0 to 255 (see System Interface), as opposed to the Guile core version returning a wait status that must be examined with status:exit-val etc (see Processes).