logoalt Hacker News

groundzeros2015today at 3:25 PM1 replyview on HN

Guaranteed destructors is probably the most complex features ever added to C++, more than templates or move semantics.


Replies

barrkeltoday at 3:54 PM

The combination of exceptions and non-trivial {copy constructor, assignment operator, destructor} are what combine to make C++ a somewhat broken language when you try to use all the features. And also responsible for poisoning the well for exceptions as an error handling mechanism for native code.

Delphi did native exceptions much better IMO.

show 1 reply