From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Linas Vepstas Newsgroups: gmane.lisp.guile.user Subject: continuation barriers Date: Sun, 23 Aug 2009 15:19:40 -0500 Message-ID: <3ae3aa420908231319y6cd4d189l4c1cab0a6b24283f@mail.gmail.com> Reply-To: linasvepstas@gmail.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1251058810 397 80.91.229.12 (23 Aug 2009 20:20:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 23 Aug 2009 20:20:10 +0000 (UTC) To: Guile User Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Aug 23 22:20:03 2009 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MfJXk-0006RG-Dw for guile-user@m.gmane.org; Sun, 23 Aug 2009 22:20:00 +0200 Original-Received: from localhost ([127.0.0.1]:49354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfJXj-0000CA-KB for guile-user@m.gmane.org; Sun, 23 Aug 2009 16:19:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MfJXX-0000Bt-4M for guile-user@gnu.org; Sun, 23 Aug 2009 16:19:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MfJXS-0000BW-P1 for guile-user@gnu.org; Sun, 23 Aug 2009 16:19:46 -0400 Original-Received: from [199.232.76.173] (port=42305 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MfJXS-0000BT-J8 for guile-user@gnu.org; Sun, 23 Aug 2009 16:19:42 -0400 Original-Received: from mail-yw0-f184.google.com ([209.85.211.184]:42276) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MfJXR-0005Wk-VF for guile-user@gnu.org; Sun, 23 Aug 2009 16:19:42 -0400 Original-Received: by ywh14 with SMTP id 14so2521193ywh.1 for ; Sun, 23 Aug 2009 13:19:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=Ysn5sKWT3kXA9z9zUS6lCG74LWkhsR8F9/0xhsHUIzc=; b=t2MHkdUxjkTfue8q5GHMwq0y2d0v7aALbqipANYFJeeXvJ0ze6/AMowb3VywCxm+E8 rWkPC/PlhB/pJqYKIfXNlQjqp4FntqnhWncjm4c485AkG6APonM0sFl73fs6DT0W265f 9q4I1wbFDc0W7OHZbsElOAy0hmZoy3CvbRBa0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=Z9nyrZHAWVwjPE69yKPLhg2nrghZCgyZnafvVPBjBLS4vKvuos0BpPJPQbBX0EuO4L GGmMzZ8+8ZQUx8fwIqNFfzAB8xEQVplcHwysv3kTdFzZXyTrSy0fjjDWLI47u7FxRHQl dRi8GjbftyNelSinhPyZQpRlNAEl8PAtkQbvE= Original-Received: by 10.101.17.4 with SMTP id u4mr3787578ani.62.1251058780320; Sun, 23 Aug 2009 13:19:40 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:7419 Archived-At: I just tried continuations for the first time in my environment, and promptly hit a continuation barrier. I think I understand why, -- its how I'm mixing C and guile -- but don't see any solution. I think what I want is a "continuation since the last time I entered guile, and don't worry about C because there aint none" . i.e. I'd like something like this to work: scm_c_eval_string(" ... (call/cc (lambda (k) (set! *myk* k))) ..."); ... some_c_code(...); scm_c_eval_string(" ... (*myk* 42) ..."); I think (I haven't yet tried) that the above can work if I wrap the whole darn thing with scm_with_guile() .. but is there some way of getting the above to run without a big wrap of this kind? --linas