On Wed, Jan 9, 2013 at 3:57 PM, Ludovic Courtès wrote:
> Hi!
>
> Akop Pogosian skribis:
>
>> # ERROR: In procedure load-extension:
>> # ERROR: In procedure dynamic-link: file: "libguilereadline-v-18",
>> message: "The specified module could not be found."
>
> [...]
>
>> # $ ls software/packages/g
On Fri 11 Jan 2013 15:23, brom...@lavabit.com writes:
> (call-with-values * -)
> ⇒ -1
So it's like:
(call-with-values producer consumer)
The producer is called with no arguments, then the results of that call
are passed to the consumer.
So first `*' is called with no arguments, like this:
brom...@lavabit.com writes:
> Hello.
>
> Why does it return -1? Could anyone explain?
> (Comments are mine.)
The general principle is to try and give sensible results when +,*,etc
are called with a number of arguments other than 2. By thinking them
through at this level you can, in theory, write m
On Tue 17 Apr 2012 05:34, gregory benison writes:
> "More helper procedures for the other common HTTP verbs would be a
> good addition to this module. Send your code to ."
>
> So, I say to guile-user, "here is my code".
Thanks! I used it as a base for a patch I just pushed. Guile now has
clie
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 - -)
Hi!
Limbo Peng skribis:
> BTW: did you guys have a hack-potluck last year?
Yes, just not under this name. ;-) Check
http://www.gnu.org/software/guile/news.html under 2012-02-16.
Happy hacking!
Ludo’.