From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Christopher Cramer Newsgroups: gmane.lisp.guile.bugs Subject: [PATCH] bound? in docs Date: Sat, 3 Aug 2002 07:14:10 -0500 Sender: bug-guile-admin@gnu.org Message-ID: <20020803071410.A6104@kiwi.pyrotechnics.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1028376629 15840 127.0.0.1 (3 Aug 2002 12:10:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2002 12:10:29 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17axjn-00047M-00 for ; Sat, 03 Aug 2002 14:10:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17axkO-0008My-00; Sat, 03 Aug 2002 08:11:04 -0400 Original-Received: from pyro.net ([207.7.10.6] helo=kiwi.pyro.net) by fencepost.gnu.org with smtp (Exim 3.35 #1 (Debian)) id 17axjN-00081E-00 for ; Sat, 03 Aug 2002 08:10:01 -0400 Original-Received: (qmail 6218 invoked by uid 8610); 3 Aug 2002 12:14:10 -0000 Original-To: bug-guile@gnu.org Content-Disposition: inline User-Agent: Mutt/1.2.5i Errors-To: bug-guile-admin@gnu.org X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.bugs:418 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:418 bound? was removed on 2001-05-10, but it's still in the documentation. This patch updates the documentation. Index: doc/ref/scheme-binding.texi =================================================================== RCS file: /cvsroot/guile/guile/guile-core/doc/ref/scheme-binding.texi,v retrieving revision 1.1.2.5 diff -u -r1.1.2.5 scheme-binding.texi --- doc/ref/scheme-binding.texi 15 Mar 2002 09:23:18 -0000 1.1.2.5 +++ doc/ref/scheme-binding.texi 3 Aug 2002 12:03:34 -0000 @@ -263,9 +263,7 @@ @section Querying variable bindings Guile provides a procedure for checking whether a symbol is bound in the -top level environment. If you want to test whether a symbol is locally -bound in expression, you can use the @code{bound?} macro from the module -@code{(ice-9 optargs)}, documented in @ref{Optional Arguments}. +top level environment. @c NJFIXME explain [env] @deffn {Scheme Procedure} defined? sym [env] Index: doc/ref/scheme-procedures.texi =================================================================== RCS file: /cvsroot/guile/guile/guile-core/doc/ref/scheme-procedures.texi,v retrieving revision 1.1.2.9 diff -u -r1.1.2.9 scheme-procedures.texi --- doc/ref/scheme-procedures.texi 20 Apr 2002 15:48:29 -0000 1.1.2.9 +++ doc/ref/scheme-procedures.texi 3 Aug 2002 12:03:37 -0000 @@ -136,7 +136,7 @@ procedures these are used from. The items in @var{rest-arg} are sequentially bound to the variable names are given. When @var{rest-arg} runs out, the remaining vars are bound either to the default values or -left unbound if no default value was specified. @var{rest-arg} remains +@code{#f} if no default value was specified. @var{rest-arg} remains bound to whatever may have been left of @var{rest-arg}. After binding the variables, the expressions @var{expr} @dots{} are @@ -211,8 +211,7 @@ creates a procedure with fixed arguments @var{a} and @var{b}, optional arguments @var{c} and @var{d}, and rest argument @var{e}. If the optional arguments are omitted in a call, the variables for them are -unbound in the procedure. This can be checked with the @code{bound?} -macro (documented below). +bound to @code{#f}. @code{lambda*} can also take keyword arguments. For example, a procedure defined like this: @@ -261,14 +260,6 @@ are equivalent in all respects to @code{lambda*}. This is provided for more similarity to DSSSL, MIT-Scheme and Kawa among others, as well as for refugees from other Lisp dialects. -@end deffn - -@deffn {library syntax} bound? variable -Check if a variable is bound in the current environment. - -The procedure @code{defined?} doesn't quite cut it as it stands, since -it only checks bindings in the top-level environment, not those in local -scope only. @end deffn -- Christopher Cramer On résiste à l'invasion des armées; on ne résiste pas à l'invasion des idées. -- Victor Hugo _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile