unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: bromley@lavabit.com
To: guile-user@gnu.org
Subject: call-with-values and primitives
Date: Fri, 11 Jan 2013 09:23:20 -0500 (EST)	[thread overview]
Message-ID: <24558.128.117.43.92.1357914200.squirrel@lavabit.com> (raw)

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
&#8658; 5

(call-with-values * -)
&#8658; -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






             reply	other threads:[~2013-01-11 14:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-11 14:23 bromley [this message]
2013-01-11 15:43 ` call-with-values and primitives Ian Price
2013-01-11 16:56 ` Andy Wingo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=24558.128.117.43.92.1357914200.squirrel@lavabit.com \
    --to=bromley@lavabit.com \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).