GNU bug report logs - #24061
While loop can't call continue in master branch

Previous Next

Package: guile;

Reported by: Nala Ginrut <nalaginrut <at> gmail.com>

Date: Sun, 24 Jul 2016 11:16:02 UTC

Severity: normal

Done: Andy Wingo <wingo <at> pobox.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Andy Wingo <wingo <at> pobox.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#24061: closed (While loop can't call continue in master branch)
Date: Thu, 04 Aug 2016 19:39:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 04 Aug 2016 21:38:03 +0200
with message-id <87eg64tjdw.fsf <at> pobox.com>
and subject line Re: bug#24061: While loop can't call continue in master branch
has caused the debbugs.gnu.org bug report #24061,
regarding While loop can't call continue in master branch
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
24061: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24061
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Nala Ginrut <nalaginrut <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: While loop can't call continue in master branch
Date: Sun, 24 Jul 2016 19:15:25 +0800
In 2.1.3.59-516f7, the 'continue' in 'while loop' throw exception. It's
OK in stable-2.0.

========================code============================
(define i 0)
(while (< i 20)
       (display i)(newline)
       (when (= i 11) (continue)) (set! i (1+ i)))
========================end=============================

While compiling expression:
ERROR: Throw to key `match-error' with args `("match" "no matching
pattern" #<cps (kargs () () (continue 16 (prompt #t 46 14)))>)'.






[Message part 3 (message/rfc822, inline)]
From: Andy Wingo <wingo <at> pobox.com>
To: Nala Ginrut <nalaginrut <at> gmail.com>
Cc: 24061-done <at> debbugs.gnu.org
Subject: Re: bug#24061: While loop can't call continue in master branch
Date: Thu, 04 Aug 2016 21:38:03 +0200
On Sun 24 Jul 2016 13:15, Nala Ginrut <nalaginrut <at> gmail.com> writes:

> In 2.1.3.59-516f7, the 'continue' in 'while loop' throw exception. It's
> OK in stable-2.0.
>
> ========================code============================
> (define i 0)
> (while (< i 20)
>        (display i)(newline)
>        (when (= i 11) (continue)) (set! i (1+ i)))
> ========================end=============================
>
> While compiling expression:
> ERROR: Throw to key `match-error' with args `("match" "no matching
> pattern" #<cps (kargs () () (continue 16 (prompt #t 46 14)))>)'.

Fixed in master.  Thanks for the report!

Andy


This bug report was last modified 9 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.