From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stephen Compall Newsgroups: gmane.lisp.guile.bugs Subject: Re: [DOCPATCH]Revamp of doc/ref/scheme-control.texi Date: 18 Jul 2003 12:14:13 -0500 Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Message-ID: References: <200307161737.h6GHbb200806@csserver.evansville.edu> <87isq03h0c.fsf@zip.com.au> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058548917 22089 80.91.224.249 (18 Jul 2003 17:21:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 18 Jul 2003 17:21:57 +0000 (UTC) Cc: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Fri Jul 18 19:21:55 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19dYvb-0005k6-00 for ; Fri, 18 Jul 2003 19:21:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19dYqU-0000LH-T4 for guile-bugs@m.gmane.org; Fri, 18 Jul 2003 13:16:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19dYpu-00006c-Cd for bug-guile@gnu.org; Fri, 18 Jul 2003 13:16:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19dYpA-0008Hx-GU for bug-guile@gnu.org; Fri, 18 Jul 2003 13:15:16 -0400 Original-Received: from [192.195.228.35] (helo=csserver.evansville.edu) by monty-python.gnu.org with esmtp (Exim 4.20) id 19dYoK-00087R-IE for bug-guile@gnu.org; Fri, 18 Jul 2003 13:14:24 -0400 Original-Received: (from sc87@localhost) by csserver.evansville.edu (8.11.6/8.11.6) id h6IHEDe08878; Fri, 18 Jul 2003 12:14:13 -0500 X-Authentication-Warning: csserver.evansville.edu: sc87 set sender to s11@member.fsf.org using -f Original-To: Kevin Ryde In-Reply-To: <87isq03h0c.fsf@zip.com.au> Original-Lines: 35 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Bug reports for GUILE, GNU's Ubiquitous Extension Language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:861 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:861 For your convenience, the URL is: http://mail.gnu.org/archive/html/guile-devel/2003-07/msg00016.html Kevin Ryde writes: > I posted a rewrite of this section to guile-devel last week, if you > want to compare. (Subject "doco continuations".) > > I hadn't attempted to redo the example, mainly because I couldn't > think of something that wasn't simply a loop or state machine in > disguise. 1. IMHO, your explanation is better (albeit not as concise ;). Do you want me to work this in and repost my patch, or would you rather do it? 2. About the example: if you think it's too obvious, here's an idea: A function performs a number of tests. When a test fails, it throws an error, with REST (see the errors node) being the current continuation. This gives the calling function an opportunity to report the error, or hopefully fix it, and then resume executing the testing function. You could emulate it with closures, sure, but.... 3. The above idea was one for another list: some "nifty" things you can do with continuations. That is, as it is now, it vaguely refers to situations in which call/cc may be preferable, without explaining at least one of those situations. -- Stephen Compall or s11 or sirian You know the great thing about TV? If something important happens anywhere at all in the world, no matter what time of the day or night, you can always change the channel. -- Jim Ignatowski _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://mail.gnu.org/mailman/listinfo/bug-guile