Proposal: for/then/else statement
qznc
qznc at go.to
Thu Jan 3 01:43:40 PST 2013
On Thursday, 3 January 2013 at 09:00:00 UTC, Linden Krouse wrote:
> My proposal is for a slight addition to for and foreach
> statements by allowing different blocks of code to be executed
> whether the loop is exited from the condition failing or a
> break statement. These would of course be independently
> optional.
Interesting. I was thinking about such a language feature myself
for some time.
Just a small extension to your proposal: It also applies to
while-loop.
More information about the Digitalmars-d
mailing list