News for hackers. Stuff that matters.
Re:C++26: Trivial infinite loops are no longer undefined beh... by WalterBright on Saturday September 19, 2026 @03:26AM (#49764206)
Since AFAIK I'm still the only person to write a correct C++ (C++98) compiler from preprocessor to object file, I know all about destructors.

Here's a fun one for your amusement:

    foo(a, b, c);
The parameters are pass by value. a, b and c are objects that have destructors. Have a look at the code generated for that.

It is nice that the compiler does the dirty work for you, but the various paths with exceptions and recovery with invisible code may not be well tested.

There are no comments on this comment yet.