Y
Hacker News
new
|
ask
|
show
|
jobs
by
opportune
1482 days ago
This is one reason many people think exceptions in C++ are harmful, they cause unclear implicit behavior. Much better to handle a failure explicitly outside the constructor
1 comments
benibela
1482 days ago
This is one reason I use Pascal
If the constructor throws an exception, the destructor is called immediately.
link
If the constructor throws an exception, the destructor is called immediately.