Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
synergy20
on Feb 22, 2022
|
parent
|
context
|
favorite
| on:
Current hardware trends make C++ exceptions harder...
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?
Koshkin
on Feb 23, 2022
[–]
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.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: