From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Vong Newsgroups: gmane.lisp.guile.user Subject: Re: Multiple values passed as single argument to procedure Date: Mon, 26 Jun 2017 19:25:04 +0800 Message-ID: <87injj9ejz.fsf@gmail.com> References: <20170613111720.XPOJR.173377.root@cdptpa-web11> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1498476346 23813 195.159.176.226 (26 Jun 2017 11:25:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 26 Jun 2017 11:25:46 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: guile-user@gnu.org, David Kastrup To: Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Jun 26 13:25:40 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 1dPS9D-0005rI-A0 for guile-user@m.gmane.org; Mon, 26 Jun 2017 13:25:39 +0200 Original-Received: from localhost ([::1]:45959 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPS9I-0006qQ-FL for guile-user@m.gmane.org; Mon, 26 Jun 2017 07:25:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPS8s-0006qK-OC for guile-user@gnu.org; Mon, 26 Jun 2017 07:25:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPS8p-0001m3-Jj for guile-user@gnu.org; Mon, 26 Jun 2017 07:25:18 -0400 Original-Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:35141) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dPS8p-0001lm-EF; Mon, 26 Jun 2017 07:25:15 -0400 Original-Received: by mail-pf0-x241.google.com with SMTP id s66so17704476pfs.2; Mon, 26 Jun 2017 04:25:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=6o/N+4qUgMts5lvQOYCn9XYSGe2pFGED4K8gQcWEUBc=; b=kwIOVgj9WhQpsGegBPfACEyUOso1/6WCMZxC7KiborVw8uKMzfanwGPmsT6J0dmv5a ViEgCm4NoiMpmNGtdx5Neb61ht23B3VyzpNW8f6T6+E1d81UInfGWCARcbtU3n33sFws CHuSxN4oR3S1TOF73Qn1MJq67TCJfmFc6x6rdnmzQk+aE5vi2yVwakFs6/raM0+tjBPY ekHbAPthFHWa2isjSu/fdoi8kNRfMBmcvAu05C+xfosPnmu9SVrccQI+DlO5aSeMoRv5 Kyo6rJ5HfEhs/PllOA1EhT9tmKpO8JRXT7Cnv+KDLGgid5mOlcAuopHhbcelWiyG8FHR +qQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=6o/N+4qUgMts5lvQOYCn9XYSGe2pFGED4K8gQcWEUBc=; b=bNHtBQMZjIgRwWcs4NovlfdoUwitLyZKB/2IUm5gBpWOZkxl1M+F2Tk1C5m+l0J8BR FNS7m9M+PD0GK1Pw+upAAq9pLBQ3iwtreGShAXc+JKRqDfFpIYCgRC0cdLJIrRu4jWOw RtTUCRVYKWgRY21bRopokAN/egUngB02MFG1QdL+GhSUb/XmWGtzf0tG8RxcfaAJ3iMR psYBk0Y7NRUQ9kifsjl6DGcW/vPgv6HNAjZOQ3dI7t/e/KbXs9HG4g24t7XfYFYVjd24 llKilSLqd4bJDhXWggVuNEvmw7kpGDugsAPjkWU32DpDLS33jquLKAe3057zLg84jU1f v4Ng== X-Gm-Message-State: AKS2vOzDmUmNcNzW8SULRRoDMOE+2zODjChgVpY+38xTzrHbQFyIk9qG R6nBLRC51B5IKA== X-Received: by 10.84.169.4 with SMTP id g4mr23481237plb.272.1498476314523; Mon, 26 Jun 2017 04:25:14 -0700 (PDT) Original-Received: from debian (n058152178028.netvigator.com. [58.152.178.28]) by smtp.gmail.com with ESMTPSA id d62sm22953971pga.2.2017.06.26.04.25.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Jun 2017 04:25:13 -0700 (PDT) In-Reply-To: <20170613111720.XPOJR.173377.root@cdptpa-web11> (dsmich@roadrunner.com's message of "Tue, 13 Jun 2017 7:17:19 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 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:13880 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Here is an explanation of multiple values by Oleg[0] and an implementation from the Scheme book[1]. These are more advanced stuff. Honestly, I usually don't understand what Oleg said. But it is good to know these references. It is like math, one day when you have enough background and the right perspective, you will understand what's going on. [0]: http://okmij.org/ftp/Scheme/misc.html#multiple-value-effect [1]: http://www.scheme.com/tspl4/control.html#./control:h8 writes: > ---- Mark H Weaver wrote:=20 >> David Kastrup writes: >>=20 >> > Mark H Weaver writes: >> >ument >> >> I'm sorry David, but _everything_ that you wrote below is incorrect. >> > >> > Well, let me try again. It's not all that easy to understand. >>=20 >> You're obviously quite intelligent and knowledgeable, so it's probably >> my failure to explain it well more than anything else. We can try again >> together. > > Thanks Mark for that most excellently lucid explanation! I had vague > notions before > but I have a much deeper appreciation now. > > Back in the day, I used Forth a bit. Multiple arguments and multiple > return values > were pretty much the same thing. (the stack) And it was easy, because > of the syntax > of the language. Yeah, I agree, syntax is the main blocker here. > > Thanks again! > -Dale --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEdZDkzSn0Cycogr9IxYq4eRf1Ea4FAllQ7xEACgkQxYq4eRf1 Ea4seBAAmvGm54O+r7O8zTKZQpjeaqJsrCjb4rhevb0aVggdFo1z+Bo/CZG/Oagq Ir5Yr95pzfx3vkH1cvWLwXUVzYVaX98SLiBXYO5qI7a8D288TUFXBhJ1NJNvYpXr uGN0zMwcF2HbNz2qxZKqtRtChFMB7mmqAJ/o4NPxKhvjL0mc9f/6UPbT/aewO8Hw UZZPWKEpWLtWW/EJiR4r4toIv7HS2TFkrivfPzwJoMo6W81hyQ4mKqMfCSSk3ihT W6hHr4GUnZmtpUnBrEFENIW0m+xoh1I3RcinJbcGxtR/nONLyRA0xxx+yGSG3K/O xRAvAbccbWpSYCLeuvlS2Rc4AsFVhnRPrfmAff4VagDCGPlVIZ6C+aSCTIO1Wulo +QOCAVD+AzMe9afBQ52PvSxRqSqe193KggvUvgiRMnJO0Q3Let0X58yOLBha2a5N l/gd99YXNj5QbWU2Vi33VWK9Evz5hbgset3qZFr2OyHzd2QHx2YmB3WXgF+FOksl iS83u+uR/YhTZNCCy7TnEItJ3sYa3tHsViUTIXYZiB7QKoPNN4/ZWosZrwZNMXZ2 XMtcYZY8U1aa/p7xCxk5dO/7DrrZwEuAIjqgIjHLZvcp/iD+kCytxTp7a9hxd6U1 FiVbWPqMfQuv7onsT96GDs+gW93jvKr3aaogUT1wMHIW3NrtuSc= =0aK8 -----END PGP SIGNATURE----- --=-=-=--