From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: bromley@lavabit.com Newsgroups: gmane.lisp.guile.user Subject: call-with-values and primitives Date: Fri, 11 Jan 2013 09:23:20 -0500 (EST) Message-ID: <24558.128.117.43.92.1357914200.squirrel@lavabit.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1357914221 29291 80.91.229.3 (11 Jan 2013 14:23:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2013 14:23:41 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 11 15:23:59 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TtfWY-0001Kw-Cc for guile-user@m.gmane.org; Fri, 11 Jan 2013 15:23:58 +0100 Original-Received: from localhost ([::1]:57504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtfWI-0002Nb-9F for guile-user@m.gmane.org; Fri, 11 Jan 2013 09:23:42 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50975) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtfW9-0002NU-95 for guile-user@gnu.org; Fri, 11 Jan 2013 09:23:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TtfVx-0006XQ-QT for guile-user@gnu.org; Fri, 11 Jan 2013 09:23:33 -0500 Original-Received: from karen.lavabit.com ([72.249.41.33]:56837) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TtfVx-0006XD-Ll for guile-user@gnu.org; Fri, 11 Jan 2013 09:23:21 -0500 Original-Received: from a.earth.lavabit.com (a.earth.lavabit.com [192.168.111.10]) by karen.lavabit.com (Postfix) with ESMTP id 92F4311BC8E for ; Fri, 11 Jan 2013 08:23:20 -0600 (CST) Original-Received: from lavabit.com (torrouter.ml-ext.ucar.edu [128.117.43.92]) by lavabit.com with ESMTP id PXWDYZJ74TKH for ; Fri, 11 Jan 2013 08:23:20 -0600 Original-Received: from 128.117.43.92 (SquirrelMail authenticated user bromley) by lavabit.com with HTTP; Fri, 11 Jan 2013 09:23:20 -0500 (EST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=sXYzf+PIJ+F14fQtwXRRAltdUD/vek7OemRJS9BdzsTfTpkKY6ppI6U+CiNuZDWDQVYjfUFUl9s/wmzhFo+C6FsYfERsINT2iWsJLhyN/BVKrmX5KdNXHf88lwVKYhO8X771DSLfWHDtUhmCBK+Eln5K6ezgIW/8IlCo9M7SAWw=; h=Message-ID:Date:Subject:From:To:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding; User-Agent: SquirrelMail/1.4.13 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 72.249.41.33 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 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-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9840 Archived-At: Hello. Why does it return -1? Could anyone explain? (Comments are mine.) (call-with-values (lambda () (values 4 5)) (lambda (a b) b)) ; a is 4 and b is 5; return 5 ⇒ 5 (call-with-values * -) ⇒ -1 More: (call-with-values + +) 0 (call-with-values + -) 0 (call-with-values - -) ERROR: Wrong number of arguments to - ABORT: (wrong-number-of-args) https://gnu.org/software/guile/manual/guile.html#Multiple-Values