From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.bugs Subject: Re: call/cc oddness Date: Thu, 17 Sep 2009 18:49:43 +0100 Message-ID: <87zl8th360.fsf@ossau.uklinux.net> References: <20090917142337.M25099@ccrma.Stanford.EDU> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253209815 13931 80.91.229.12 (17 Sep 2009 17:50:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Sep 2009 17:50:15 +0000 (UTC) Cc: bug-guile@gnu.org To: "Bill Schottstaedt" Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Sep 17 19:50:08 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MoL7N-0008HL-Vm for guile-bugs@m.gmane.org; Thu, 17 Sep 2009 19:50:06 +0200 Original-Received: from localhost ([127.0.0.1]:35817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoL7N-0003sU-Gg for guile-bugs@m.gmane.org; Thu, 17 Sep 2009 13:50:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MoL78-0003md-CO for bug-guile@gnu.org; Thu, 17 Sep 2009 13:49:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MoL73-0003k7-LP for bug-guile@gnu.org; Thu, 17 Sep 2009 13:49:50 -0400 Original-Received: from [199.232.76.173] (port=53591 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MoL73-0003jx-F0 for bug-guile@gnu.org; Thu, 17 Sep 2009 13:49:45 -0400 Original-Received: from mail3.uklinux.net ([80.84.72.33]:43826) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MoL73-0007Ts-2E for bug-guile@gnu.org; Thu, 17 Sep 2009 13:49:45 -0400 Original-Received: from arudy (host86-147-112-99.range86-147.btcentralplus.com [86.147.112.99]) by mail3.uklinux.net (Postfix) with ESMTP id AE5381F6BBE; Thu, 17 Sep 2009 18:49:44 +0100 (BST) Original-Received: from arudy (arudy [127.0.0.1]) by arudy (Postfix) with ESMTP id B69C638021; Thu, 17 Sep 2009 18:49:43 +0100 (BST) In-Reply-To: <20090917142337.M25099@ccrma.Stanford.EDU> (Bill Schottstaedt's message of "Thu, 17 Sep 2009 07:25:03 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4321 Archived-At: "Bill Schottstaedt" writes: > Is this a bug? I'd say not. It looks like a useful generalization. > scheme@(guile-user)> (call/cc (lambda (a . b) (a 1))) > 1 > scheme@(guile-user)> (call/cc (lambda arg ((car arg) 1))) > 1 > scheme@(guile-user)> (call/cc (lambda (a b) (a 1))) > ERROR: Wrong number of arguments to # > > r5rs.html and r6rs.html say "Proc must be a procedure of one argument" -- perhaps > ambiguous? Whereas what we implement is "Proc must be a procedure that can accept a single argument". Neil