From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.lisp.guile.user Subject: Re: Continuations: possible newbie question Date: Wed, 18 Dec 2002 09:27:03 -0800 Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: Reply-To: ttn@glug.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1040232605 19531 80.91.224.249 (18 Dec 2002 17:30:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Dec 2002 17:30:05 +0000 (UTC) Cc: guile-user@gnu.org 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 18Oi1A-00054G-00 for ; Wed, 18 Dec 2002 18:30:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Oi1X-0007Mc-00 for guile-user@m.gmane.org; Wed, 18 Dec 2002 12:30:23 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18Oi18-0007Kq-00 for guile-user@gnu.org; Wed, 18 Dec 2002 12:29:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18Oi16-0007Jq-00 for guile-user@gnu.org; Wed, 18 Dec 2002 12:29:57 -0500 Original-Received: from ca-crlsca-cuda3-c6a-b-211.crlsca.adelphia.net ([68.71.15.211] helo=giblet.glug.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18Oi0W-0007Aa-00 for guile-user@gnu.org; Wed, 18 Dec 2002 12:29:21 -0500 Original-Received: from ttn by giblet.glug.org with local (Exim 3.35 #1 (Debian)) id 18OhyJ-0008VJ-00; Wed, 18 Dec 2002 09:27:03 -0800 Original-To: matt@immute.net In-reply-to: message from Matt Hellige on Tue, 17 Dec 2002 18:14:25 -0600 Original-References: X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: General Guile related discussions List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:1455 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1455 From: Matt Hellige Date: Tue, 17 Dec 2002 18:14:25 -0600 is this due to a bug in guile, perhaps. here is what i see: guile> (version) "1.4.1.93" guile> (load "cwcc.scm") ; as posted guile> (exec-binding bind) "escaped" guile> (done-reading "hi") hi guile> or to my abuse of continuations? continuations are basically a sanctioned control-flow abuse mechanism, so it is all just a matter of degree. i have been happy not to use them except as escapes, in my code. in one gig i used them -- guile 1.3.4, i believe -- as co-routines (like your example) but that was more to impress the Boss (and drag myself out of ignorance ;-) than anything. another way to do what I'm trying to do? probably you can continue your explorations in this vein w/ more debugging support: use `trace' and `pk' to determine where things go wrong, and/or use a guile version that behaves as you expect. all other ways essentially devolve into using continuations. thi _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user