[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
guile/guile-core/doc intro.texi scheme-procedur...
From: |
Thien-Thi Nguyen |
Subject: |
guile/guile-core/doc intro.texi scheme-procedur... |
Date: |
Sun, 13 May 2001 12:14:42 -0700 |
CVSROOT: /cvs
Module name: guile
Changes by: Thien-Thi Nguyen <address@hidden> 01/05/13 12:14:42
Modified files:
guile-core/doc : intro.texi scheme-procedures.texi
scheme-modules.texi
Log message:
Fixup some module-related references.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/doc/intro.texi.diff?cvsroot=OldCVS&tr1=1.7&tr2=1.8&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/doc/scheme-procedures.texi.diff?cvsroot=OldCVS&tr1=1.10&tr2=1.11&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/guile/guile-core/doc/scheme-modules.texi.diff?cvsroot=OldCVS&tr1=1.8&tr2=1.9&r1=text&r2=text
Patches:
Index: guile/guile-core/doc/intro.texi
diff -u guile/guile-core/doc/intro.texi:1.7 guile/guile-core/doc/intro.texi:1.8
--- guile/guile-core/doc/intro.texi:1.7 Sat May 5 18:49:56 2001
+++ guile/guile-core/doc/intro.texi Sun May 13 12:14:41 2001
@@ -1,4 +1,4 @@
address@hidden $Id: intro.texi,v 1.7 2001/05/06 01:49:56 ttn Exp $
address@hidden $Id: intro.texi,v 1.8 2001/05/13 19:14:41 ttn Exp $
@page
@node What is Guile?
@@ -695,18 +695,21 @@
modules, you can group related code together and manage the
composition of complete programs from largely independent parts.
-(The module system is in flux, and will likely look very different in
-the future. Feel free to use the existing system anyway. Guile will
-provide reasonable backwards compatability.)
+(Although the module system implementation is in flux, feel free to use it
+anyway. Guile will provide reasonable backwards compatability.)
+Details on the module system beyond this introductory material can be found in
address@hidden
+
+
@menu
-* Using Guile Modules::
-* Writing New Modules::
-* Modules and Extensions::
+* Intro to Using Guile Modules::
+* Intro to Writing New Modules::
+* Intro to Modules and Extensions::
@end menu
address@hidden Using Guile Modules
address@hidden Using Existing Modules
address@hidden Intro to Using Guile Modules
address@hidden Intro to Using Existing Modules
Guile comes with a lot of useful modules, for example for string
processing or command line parsing. Additionally, there exist many
@@ -747,12 +750,10 @@
"drwxr-sr-x 2 mgrabmue mgrabmue 1024 Mar 29 19:57 CVS"
@end lisp
-More details of module usage can be found in (REFFIXME).
address@hidden Intro to Writing New Modules
address@hidden Intro to Writing New Modules
address@hidden Writing New Modules
address@hidden Writing New Modules
-
Of course it is possible to write modules yourself. Using modules for
structuring your programs makes them more readable and lets you
distribute them more easily. Also, explicitly defining the procedures
@@ -805,8 +806,8 @@
using @code{use-modules} to load the module @code{(foo bar)}.
address@hidden Modules and Extensions
address@hidden Modules and Extensions
address@hidden Intro to Modules and Extensions
address@hidden Intro to Modules and Extensions
In addition to Scheme code you can also put new procedures and other
named features that are provided by an extension into a module.
@@ -828,6 +829,7 @@
The file should of course be saved in the right place for autoloading,
for example as @file{/usr/local/share/guile/math/bessel.scm}.
+
@page
@node Reporting Bugs
Index: guile/guile-core/doc/scheme-modules.texi
diff -u guile/guile-core/doc/scheme-modules.texi:1.8
guile/guile-core/doc/scheme-modules.texi:1.9
--- guile/guile-core/doc/scheme-modules.texi:1.8 Sun May 13 04:22:01 2001
+++ guile/guile-core/doc/scheme-modules.texi Sun May 13 12:14:41 2001
@@ -144,7 +144,7 @@
@subsection Using Guile Modules
To use a Guile module is to access either its public interface or a
-custom interface (@pxref{General Information About Modules}). Both
+custom interface (@pxref{General Information about Modules}). Both
types of access are handled by the syntactic form @code{use-modules},
which accepts one or more interface specifications and, upon evaluation,
arranges for those interfaces to be available to the current module.
Index: guile/guile-core/doc/scheme-procedures.texi
diff -u guile/guile-core/doc/scheme-procedures.texi:1.10
guile/guile-core/doc/scheme-procedures.texi:1.11
--- guile/guile-core/doc/scheme-procedures.texi:1.10 Sat May 5 06:40:18 2001
+++ guile/guile-core/doc/scheme-procedures.texi Sun May 13 12:14:41 2001
@@ -189,10 +189,10 @@
@example
ext-param-list ::= [identifier]* [#:optional [ext-var-decl]+]?
- [#:key [ext-var-decl]+ [#:allow-other-keys]?]?
+ [#:key [ext-var-decl]+ [#:allow-other-keys]?]?
[[#:rest identifier]|[. identifier]]?
-ext-var-decl ::= identifier | ( identifier expression )
+ext-var-decl ::= identifier | ( identifier expression )
@end example
The characters `*', `+' and `?' are not to be taken literally; they mean
@@ -231,7 +231,7 @@
@lisp
(lambda* (foo #:optional (bar 42) #:key (baz 73))
- (list foo bar baz))
+ (list foo bar baz))
@end lisp
@var{foo} is a fixed argument, @var{bar} is an optional argument with
@@ -446,7 +446,7 @@
address@hidden definitions would be:
@lisp
(define foo-ref vector-ref)
-(define foo-set! vector-set!)
+(define foo-set! vector-set!)
(define f (make-vector 2 #f))
@end lisp
}
@@ -477,7 +477,7 @@
structure stored in @code{f}, or to write into the structure.
@lisp
-(set! (foo f 0) 'dum)
+(set! (foo f 0) 'dum)
(foo f 0) @result{} dum
@end lisp
@@ -613,7 +613,7 @@
In Guile, the @code{syntax-rules} system is provided by the @code{(ice-9
syncase)} module. To make these facilities available in your code,
include the expression @code{(use-modules (ice-9 syncase))} or
address@hidden(use-syntax (ice-9 syncase))} (@pxref{Loading Guile Modules})
address@hidden(use-syntax (ice-9 syncase))} (@pxref{Using Guile Modules})
before the first usage of @code{define-syntax} etc. If you are writing
a Scheme module, you can alternatively use one of the keywords
@code{#:use-module} and @code{#:use-syntax} in your @code{define-module}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- guile/guile-core/doc intro.texi scheme-procedur...,
Thien-Thi Nguyen <=