From: Kevin Ryde Date: Tue, 20 Jan 2004 00:30:13 +0000 (+0000) Subject: (SLIB): Note `system' redefined by (ice-9 slib). Tweak X-Git-Url: https://git.hcoop.net/bpt/guile.git/commitdiff_plain/de5eb61998591242188b94b12325f318d69123f5 (SLIB): Note `system' redefined by (ice-9 slib). Tweak `require' example. --- diff --git a/doc/ref/slib.texi b/doc/ref/slib.texi index 83adca154..6e661f006 100644 --- a/doc/ref/slib.texi +++ b/doc/ref/slib.texi @@ -11,16 +11,20 @@ must be executed: @end smalllisp @cindex @code{require} -@code{require} can then be used as described in -@ref{Top, , SLIB, slib, The SLIB Manual}. +@code{require} can then be used in the usual way (@pxref{Requesting +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 -guile> (use-modules (ice-9 slib)) -guile> (require 'primes) -guile> (probably-prime? 13) -@end smalllisp +Note that @code{(ice-9 slib)} provides a new definition of +@code{system}, one giving a plain exit code return value, as per the +SLIB specification (@pxref{System Interface,,, slib, The SLIB +Manual}). @menu * SLIB installation::