From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: Multiple values passed as single argument to procedure Date: Mon, 12 Jun 2017 07:31:34 -0400 Message-ID: <87wp8h1lyh.fsf@netris.org> References: <87mv9fnejc.fsf@gmail.com> <87k24i2rev.fsf@netris.org> <87zidexdjw.fsf@gmail.com> <87a85d3k9n.fsf@netris.org> <87mv9dy5wb.fsf@gmail.com> <87mv9d7dfu.fsf@fencepost.gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1497267148 26919 195.159.176.226 (12 Jun 2017 11:32:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 12 Jun 2017 11:32:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: guile-user@gnu.org To: David Kastrup Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 12 13:32:24 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKNa4-0006nZ-Il for guile-user@m.gmane.org; Mon, 12 Jun 2017 13:32:24 +0200 Original-Received: from localhost ([::1]:37340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKNa9-0006b1-UO for guile-user@m.gmane.org; Mon, 12 Jun 2017 07:32:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKNZi-0006an-FF for guile-user@gnu.org; Mon, 12 Jun 2017 07:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKNZe-0004o4-Fp for guile-user@gnu.org; Mon, 12 Jun 2017 07:32:02 -0400 Original-Received: from world.peace.net ([50.252.239.5]:43666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKNZe-0004mK-AZ; Mon, 12 Jun 2017 07:31:58 -0400 Original-Received: from pool-72-93-27-151.bstnma.east.verizon.net ([72.93.27.151] helo=jojen) by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKNZS-0004Kq-8v; Mon, 12 Jun 2017 07:31:46 -0400 In-Reply-To: <87mv9d7dfu.fsf@fencepost.gnu.org> (David Kastrup's message of "Mon, 12 Jun 2017 11:39:01 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 50.252.239.5 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13827 Archived-At: I'm sorry David, but _everything_ that you wrote below is incorrect. David Kastrup writes: > Chris Marusich writes: > >> I think I'm missing something here. In (list (f)), the call to f >> certainly looks like it's happening at a position that one might >> intuitively call a "tail" position. > > It is, No it isn't. > but list does not take multiple values Yes it does. 'list' accepts an arbitrary number of values (arguments). > and thus discards additional values returned by f. 'list' does not discard anything. The additional values are discarded before 'list' is called. > If list were a procedure/continuation accepting multiple values, See above. > would likely work as you expected. It would not work as Chris expected no matter what procedure was called. I will try to clarify all of this in another message. Mark