News for hackers. Stuff that matters.
Re:Current hardware trends make C++ exceptions harder to jus... by Koshkin on Tuesday February 22, 2022 @04:25PM (#30434051)
Except you are not supposed to throw in a destructor.
Re:Current hardware trends make C++ exceptions harder to jus... by synergy20 on Tuesday February 22, 2022 @06:45PM (#30435494)
https://www.cs.technion.ac.il/users/yechiel/c++-faq/dtors-sh... but what if dtor fails(e.g. can't release a resource), is the by-default action terminate or ignore?
Re:Current hardware trends make C++ exceptions harder to jus... by Koshkin on Tuesday February 22, 2022 @07:27PM (#30435908)
Well, the "environment" may decide for you in some cases, but there is no default action as such. You log an error and either terminate or ignore - depending on which causes less harm.