From: first last <oic2day@yahoo.com>
Subject: minor proposed changed to guile doc
Date: Wed, 1 Sep 2004 08:49:37 -0700 (PDT) [thread overview]
Message-ID: <20040901154937.84224.qmail@web10904.mail.yahoo.com> (raw)
I propose that the following section replace the
current documentation for the DO function. It
essentially replaces "test" with "terminate" and
"expr" with "result".
The motiviation is to make it more obvious that the
loop ends on a true value for the test. (as opposed
to "continue on true").
If I should make the change to a CVS working version
directly, please let me know (directly to me as I
don't check this list regularly). Otherwise I will
assume/hope someone else makes the change if its
acceptable.
-sp-
------------
- syntax: do ((variable1 init1 step1) ...) (terminate
result1 ...) command ...
The INIT expressions are evaluated and the
VARIABLES are bound to
their values. Then looping starts with testing
the TERMINATE
expression. If TERMINATE evaluates to a true
value, the RESULT following
the TERMINATE are evaluated and the value of the
last RESULT is returned
as the value of the `do' expression. If
TERMINATE evaluates to false,
the COMMANDs are evaluated in order, the STEPs
are evaluated and
stored into the VARIABLES and the next iteration
starts.
Any of the STEP expressions may be omitted, so
that the
corresponding variable is not changed during
looping.
_______________________________
Do you Yahoo!?
Win 1 of 4,000 free domain names from Yahoo! Enter now.
http://promotions.yahoo.com/goldrush
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
next reply other threads:[~2004-09-01 15:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-01 15:49 first last [this message]
2004-09-01 21:29 ` minor proposed changed to guile doc Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040901154937.84224.qmail@web10904.mail.yahoo.com \
--to=oic2day@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).