unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#24061: While loop can't call continue in master branch
@ 2016-07-24 11:15 Nala Ginrut
  2016-08-04 19:38 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Nala Ginrut @ 2016-07-24 11:15 UTC (permalink / raw)
  To: 24061

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)))>)'.









^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#24061: While loop can't call continue in master branch
  2016-07-24 11:15 bug#24061: While loop can't call continue in master branch Nala Ginrut
@ 2016-08-04 19:38 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2016-08-04 19:38 UTC (permalink / raw)
  To: Nala Ginrut; +Cc: 24061-done

On Sun 24 Jul 2016 13:15, Nala Ginrut <nalaginrut@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





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-04 19:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-24 11:15 bug#24061: While loop can't call continue in master branch Nala Ginrut
2016-08-04 19:38 ` Andy Wingo

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).