<div dir="ltr">On 2 October 2013 03:00, 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 16:55:12 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">
On 1 October 2013 23:54, deadalnix <<a href="mailto:deadalnix@gmail.com" target="_blank">deadalnix@gmail.com</a>> wrote:<br>
<br>
</div><div><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tuesday, 1 October 2013 at 11:40:35 UTC, Manu wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Note: there's an un-handled case in your example, but I'll ignore that.<br>
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>
<br>
</blockquote>
BreakableLoop: while(condition) {<br>
    while(condition) {<br>
        // Stuff . . .<br>
        break BreakableLoop;<br>
    }<br>
}<br>
<br>
Also works with continue.<br>
<br>
</blockquote>
<br></div></div><div class="im">
... O_O<br>
<br>
Is this D code?<br></div><div class="im">
I've never seen that. If that works, that's awesome!<br>
</div></blockquote>
<br>
Yes, I use it quite a lot ! Very useful construct.<br>
</blockquote></div><br></div><div class="gmail_extra">Super useful! :)</div><div class="gmail_extra">Well, I think there's almost no reason left for goto... I can't think of any of my common use cases that aren't satisfied with a proper D construct.</div>
</div>