manpagez: man pages & more
info guile
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

7.1 SLIB

SLIB is a portable library of Scheme packages which can be used with Guile and other Scheme implementations. SLIB is not included in the Guile distribution, but can be installed separately (see section SLIB installation). It is available from http://people.csail.mit.edu/jaffer/SLIB.html.

After SLIB is installed, the following Scheme expression must be executed before the SLIB facilities can be used:

(use-modules (ice-9 slib))

require can then be used in the usual way (see Require in The SLIB Manual). For example,

(use-modules (ice-9 slib))
(require 'primes)
(prime? 13)
⇒ #t

A few Guile core functions are overridden by the SLIB setups; for example the SLIB version of delete-file returns a boolean indicating success or failure, whereas the Guile core version throws an error for failure. In general (and as might be expected) when SLIB is loaded it’s the SLIB specifications that are followed.


This document was generated on April 20, 2013 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.