1
Fork 0
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:
Mark H Weaver 2011-03-04 13:44:02 -05:00
parent 495a39c40f
commit ddf134cfec

View file

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