<br><br><div class="gmail_quote">On Fri, Jul 6, 2012 at 9:42 AM, Razvan Cojocaru <span dir="ltr"><<a href="mailto:razvanco@gmx.net" target="_blank">razvanco@gmx.net</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"><br>
> There is also the danger in changing known working code just to match the<br>
> latest best practice.<br>
<br>
</div>RAII as the way of writing exception-safe C++ code has been recommende ever since the language added support for exceptions. It's in Stroustrup, Meyers, etc.<br>
<br>
It's a ~15 year old best practice. We're not talking about template metaprogramming here...<br></blockquote><div><br></div><div>just so we;re clear, i started working in C++ in 1992, which is 20 years ago :) actually, my first task with C++ was to add thread local storage to Cfront itself ...</div>
<div> </div><div>i've long resisted many of the more "not-C-like" idioms in C++, which is something that i tend to regret more and more as time goes on. i know where i got this tendency from (he shall remain nameless), and i try to overcome it, but its not always successful. i still fundamentally don't trust the compiler to do precisely what i want.</div>
</div>