From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: break/continue vs. try-always
Date: Thu, 05 Jun 2014 08:53:19 -0700 [thread overview]
Message-ID: <140605085319.ZM4272@torch.brasslantern.com> (raw)
In-Reply-To: <140604223723.ZM22960@torch.brasslantern.com>
On Jun 4, 10:37pm, Bart Schaefer wrote:
} Subject: [PATCH] Re: Oddball output from zerrmsg()
}
} ... the "continue" propagates
} up through the dynamic scopes and restarts the "while true;" loop ...
}
} Not even an "always" block can intercept this, which is probably a bug in
} the handling of "always".
OK, not a bug, exactly. The always-block is in fact executed, but it has
no way to decrement the number of levels of "break" or "continue" that
have been set by the try-block. It can *increase* the number of levels,
but not stop the break/continue from propagating upward.
next prev parent reply other threads:[~2014-06-05 15:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-04 2:12 Oddball output from zerrmsg() Bart Schaefer
2014-06-05 5:37 ` [PATCH] " Bart Schaefer
2014-06-05 15:53 ` Bart Schaefer [this message]
2014-06-06 20:58 ` break/continue vs. try-always Peter Stephenson
2014-06-06 21:08 ` Bart Schaefer
2014-06-06 21:45 ` Peter Stephenson
2014-06-07 6:22 ` Bart Schaefer
2014-06-08 17:54 ` Peter Stephenson
2014-06-08 18:41 ` Bart Schaefer
2014-06-08 19:43 ` Peter Stephenson
2014-06-08 20:29 ` Peter Stephenson
2014-06-08 21:01 ` Bart Schaefer
2014-06-08 21:50 ` Peter Stephenson
2014-06-09 2:11 ` Bart Schaefer
2014-06-12 19:35 ` Peter Stephenson
2014-06-13 6:57 ` Bart Schaefer
2014-06-13 9:55 ` Peter Stephenson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=140605085319.ZM4272@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).