On Wednesday, 5 September 2012 at 12:43:26 UTC, Piotr Szturmaj wrote:
Michel Colman wrote:
I have a very simple suggestion for breaking out of nested loops.

I think it's already there: http://dlang.org/statement.html#BreakStatement

"If break is followed by Identifier, the Identifier must be the label of an enclosing while, for, do or switch statement, and that statement is exited. It is an error if there is no such statement."

I really wish there was a simple "break from current scope" command. It would be kinda like "goto end of scope", just cleaner...

Reply via email to