[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
call-with-values and primitives
From: |
bromley |
Subject: |
call-with-values and primitives |
Date: |
Fri, 11 Jan 2013 09:23:20 -0500 (EST) |
User-agent: |
SquirrelMail/1.4.13 |
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
- call-with-values and primitives,
bromley <=