summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2010-10-01 11:54:38 +0200
committerAndy Wingo <wingo@pobox.com>2010-10-01 11:54:38 +0200
commit9866cfe48489919f4527adba94ce2b5f74895e41 (patch)
treef52c4222a7b68b7f52f4eaca7c98a34ad65cffcb
parent1cfdb1bbcadfdba7b83677e5b25772ff0f38163e (diff)
downloadguile-9866cfe48489919f4527adba94ce2b5f74895e41.tar.gz
update tour.texi
* doc/ref/tour.texi (Using the Guile Module System): Remove "in flux" language. Update examples to use #:export instead of (export ...).
-rw-r--r--doc/ref/tour.texi17
1 files changed, 6 insertions, 11 deletions
diff --git a/doc/ref/tour.texi b/doc/ref/tour.texi
index 0c8b7e4a9..9d378da8c 100644
--- a/doc/ref/tour.texi
+++ b/doc/ref/tour.texi
@@ -188,10 +188,7 @@ Guile has support for dividing a program into @dfn{modules}. By using
modules, you can group related code together and manage the
composition of complete programs from largely independent parts.
-(Although the module system implementation is in flux, feel free to use it
-anyway. Guile will provide reasonable backwards compatibility.)
-
-Details on the module system beyond this introductory material can be found in
+For more details on the module system beyond this introductory material,
@xref{Modules}.
@menu
@@ -239,8 +236,8 @@ session shows a simple example.
@smallexample
$ cat /usr/local/share/guile/foo/bar.scm
-(define-module (foo bar))
-(export frob)
+(define-module (foo bar)
+ #:export (frob))
(define (frob x) (* 2 x))
@@ -262,8 +259,8 @@ call @code{load-extension} directly in the body of the module.
@smallexample
$ cat /usr/local/share/guile/math/bessel.scm
-(define-module (math bessel))
-(export j0)
+(define-module (math bessel)
+ #:export (j0))
(load-extension "libguile-bessel" "init_bessel")
@@ -275,9 +272,7 @@ scheme@@(guile-user)> (j0 2)
$1 = 0.223890779141236
@end smallexample
-There is also a way to manipulate the module system from C but only
-Scheme files can be autoloaded. Thus, we recommend that you define
-your modules in Scheme.
+@xref{Modules and Extensions}, for more information.
@lowersections