<div dir="ltr">On 1 October 2013 23:54, deadalnix <span dir="ltr"><<a href="mailto:deadalnix@gmail.com" target="_blank">deadalnix@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Tuesday, 1 October 2013 at 11:40:35 UTC, Manu wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Note: there's an un-handled case in your example, but I'll ignore that.<br></div><div class="im">
Anyway, goto is supported. Walter likes it. I use it from time to time.<br>
I'd say 90% of the time I find goto useful is when I need to bail from<br>
nested loops. I've often wondered if something like break(2) would be a<br>
more elegant solution to the breaking out of nested loops problem.<br>
<br>
</div></blockquote>
<br>
BreakableLoop: while(condition) {<br>
    while(condition) {<br>
        // Stuff . . .<br>
        break BreakableLoop;<br>
    }<br>
}<br>
<br>
Also works with continue.<br>
</blockquote></div> </div><div class="gmail_extra">... O_O</div><div class="gmail_extra"><br></div><div class="gmail_extra">Is this D code?</div><div class="gmail_extra">I've never seen that. If that works, that's awesome!</div>
</div>