mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Within while',
continue' takes zero arguments
* module/ice-9/boot-9.scm (while): Report an error if `continue' is passed one or more arguments. Previously, it would report an error if `(continue arg rest ...)' was found within the `while', but not if `continue' was found bare and later applied to one or more arguments, e.g. `(apply continue (list arg rest ...))'.
This commit is contained in:
parent
495a39c40f
commit
ddf134cfec
1 changed files with 2 additions and 2 deletions
|
@ -2803,8 +2803,8 @@ module '(ice-9 q) '(make-q q-length))}."
|
|||
((_ . args)
|
||||
(syntax-violation 'continue "too many arguments" x))
|
||||
(_
|
||||
#'(lambda args
|
||||
(apply abort-to-prompt continue-tag args))))))
|
||||
#'(lambda ()
|
||||
(abort-to-prompt continue-tag))))))
|
||||
(do () ((not cond)) body ...))
|
||||
(lambda (k) (lp)))))
|
||||
(lambda (k)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue