Yeah,<div>you're right Simon.</div><div><br></div><div>Apologies for taking us on a tangent.</div><div>But over the past 5 years I have NEVER seen this use of a case statement.</div><div><br></div><div>:s</div><div><br>

</div><div>Lets get back to solving your problem then.<br><br><div class="gmail_quote">On 3 August 2011 12:23, Simon Coffey <span dir="ltr"><<a href="mailto:simon@tribesports.com">simon@tribesports.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 3 August 2011 12:05, Matthew Rudy Jacobs <<a href="mailto:matthewrudyjacobs@gmail.com">matthewrudyjacobs@gmail.com</a>> wrote:<br>


> Hi Simon.<br>
> In your code snippet I want you to think about what it means.<br>
<br>
</div>As Tom has pointed out, it's my understanding (and the Pickaxe's) that<br>
this pattern does indeed execute as if it were a series of if<br>
statements. And indeed the vast majority of the time, it works<br>
perfectly - as I said in my original email, this error occurs perhaps<br>
once a week, if that, and the method is called for every page render<br>
on our site. If the code:<br>
<br>
  case<br>
  when nil then nil.crash<br>
  end<br>
<br>
reliably caused a :crash message to be sent to nil, our code would<br>
never work, surely?<br>
<br>
Cheers,<br>
<font color="#888888">Simon<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br></div>