title: RAII and Stack unwinding
body: <p>TIL that my notions of the 'inter-twining' (for the lack of a better word) of RAII &amp; stack-unwinding are/were quite(if not completely) wrong. My understanding was that using RAII, guarded against any/all resource leaks - even ones potentially caused by unhandled exceptions. </p>
  
  <p>However writing <a href="http://pastebin.com/hrmAUzPM" rel="nofollow">this test program</a> and subsequently stumbling upon <a href="http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr155.htm" rel="nofollow">this article/documentation</a>, made me realize that stack unwinding would only cause the RAII-enabled resource deallocation to kick in for automatic's within the try block as opposed to automatic's in, say, outer/other scopes.</p>
  
  <p>Am I correct in this (new) understanding? Or are there further nuances I am yet not grasping? Any gurus out there want to chime in? Pointers to any good write-ups/analyses/explanations (of stack-unwinding) would be helpful/appreciated…</p>