
15 Jan
2013
15 Jan
'13
10 a.m.
On Jan 14, 2013, at 7:49 AM, TONGARI <tongari95@gmail.com> wrote:
2013/1/14 TONGARI <tongari95@gmail.com>
2013/1/14 Rob Stewart <robertstewart@comcast.net>
While I understand the value of being able to exit such compound scopes cleanly, goto is a poor solution as it bypasses destructors, which makes this idea error prone.
No. At least for g++ & clang that I tested the stack is correctly unwound and the dtors are called.
You may want to see 6.7/3 "Declaration statement". It's standard guaranteed.
Quite right. I was thinking of sethmp/longjmp when I wrote that. Sorry for the noise. ___ Rob