With Guile 2.2.6:
$ guile-2.2 -c '(ash 1 (ash 1 37))'
gmp: overflow in mpz type
zsh: abort guile-2.2 -c '(ash 1 (ash 1 37))'
$
For shift distances of (ash 1 63) or greater Guile cleanly signals an
exception indicating the overflow. The above treatment of a range of
smaller (but still stupid
Ludovic Courtès skribis:
> The problem was that ‘make-compound-condition’ is re-exported from (srfi
> srfi-35) and this particular case was not handled.
>
> The attached patch fixes it. Let me know what you think!
Pushed as 5969490f55e5a167a3eb2573a3c5241c0ce079f3 following the
IRC’d LGTM. :-)
Hi!
Ricardo Wurmus skribis:
> I execute commands in a loop and wish to be able to interrupt the loop
> with SIGINT. Here’s the first attempt:
>
> guile -c \
> '(for-each (lambda (n)
> (display n)
> (system* "sleep" "3"))
> (list 1 2
Hello!
Ludovic Courtès skribis:
> $ cat /tmp/unbound.scm
> (use-modules (srfi srfi-35))
>
> (condition (&message (message "oh no!"))
>(&serious))
> $ guild compile -Wunbound-variable /tmp/unbound.scm
> /tmp/unbound.scm:3:0: warning: possibly unbound variable
> `make-compound-conditi
Thanks for the report and fix, and apologies for the delay!
Andy