Reputation
2,785
Top tag
Next privilege 3,000 Rep.
Cast close & reopen votes
Badges
3 14 35
Impact
~186k people reached

Jan
31
comment Should a C++ program catch all exceptions and prevent exceptions from bubbling up past main()?
This. The deciding factors wrt. Are basically outside the scope of C++.
Jan
31
comment Should a C++ program catch all exceptions and prevent exceptions from bubbling up past main()?
You only loose control within the scope of std C++. An implementation specific way to handle such "crashes" should be available. C++ doen't usually run in a vacuum.
Dec
19
awarded  Nice Question
Dec
18
accepted What is the conceptual difference between finally and a destructor?
Dec
18
comment What is the conceptual difference between finally and a destructor?
execellent. absolutely excellent.
Dec
8
comment What is the conceptual difference between finally and a destructor?
@Mehrdad - let's continue at chat.stackexchange.com/rooms/32696/finally-vs-dtor (note: will be offline soon today, but will reply during next days)
Dec
8
comment What is the conceptual difference between finally and a destructor?
@Mehrdad - as for your other points - it seems we have to agree to disagree. I see where you're aiming at with the difference, but I'm just not convinced that they are something conceptually different: Mainly because I'm mostly in the camp that thinks throwing from finally is a really bad idea (note: I also think in your observer example that throwing there would be a really bad idea.) Feel free to open a chat, if you want to discuss this further. It was certainly fun thinking about your arguments. Cheers.
Dec
8
comment What is the conceptual difference between finally and a destructor?
@Mehrdad - I didn't address your javascript example because it would take me another page to discuss what I think of it. (I tried, but it took me so long, to phrase something coherent that I skipped it :-)
Dec
3
revised What is the conceptual difference between finally and a destructor?
deleted 90 characters in body
Dec
2
revised What is the conceptual difference between finally and a destructor?
deleted 1061 characters in body
Dec
2
comment What is the conceptual difference between finally and a destructor?
Mehrdad - actually I think your distinction doesn't make sense. I don't think finally and d'tors solve much different problems at all. (Well I think d'tors are much more powerful.) But I've added some thoughts and links to my own answer. Feel free to comment. :-)
Dec
2
answered What is the conceptual difference between finally and a destructor?
Dec
2
comment What is the conceptual difference between finally and a destructor?
Thanks. I disagree, but hey :-) I think I'll be able to add a thorough opposing view answer in the next days ...
Dec
2
asked What is the conceptual difference between finally and a destructor?
Nov
30
accepted Handling false positives and legacy code warnings in static-analysis of C++ code?
Nov
29
awarded  Popular Question
Nov
19
answered Issues deciding on approach to create object
Nov
17
comment Almost every reported bug is a high-priority bug
No. Wait. You seem to sugesst ... But that cannot be ... There's actually devs that don't have more Bugs than they can process? Seriously? :-D
Oct
27
awarded  Yearling
Oct
8
awarded  Nice Question