Perhaps a warning, there are to many ways to make "unreachable" code reachable. In other words, it is surely too much work to implement currently.<div>Plus I find it annoying in Java when that happens, because often I'm just quickly testing a different return.<br>
<div><br></div><div>-Rory<br><br><div class="gmail_quote">On Mon, Sep 19, 2011 at 2:06 AM, Stewart Gordon <span dir="ltr"><<a href="mailto:smjg_1998@yahoo.com">smjg_1998@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On 31/08/2011 09:56, Don wrote:<br>
<snip><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
What if range.empty is simply the compile-time constant 'false'?<br>
</blockquote>
<br>
That's exactly the case I've just covered.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Isn't:<br>
if (false) {...}<br>
unreachable code?<br>
If it doesn't create an error, what would?<br>
</blockquote>
<br>
doSomething();<br>
return;<br>
doSomethingElse();<br>
<br>
including more complicated equivalents like<br>
<br>
if (condition) {<br>
return something;<br>
} else {<br>
return somethingElse;<br>
}<br>
doSomethingElse();<br><font color="#888888">
<br>
Stewart.<br>
</font></blockquote></div><br></div></div>