News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ by vkazanov on Friday August 18, 2023 @04:58AM (#37172992)
This is a great example.

There's an obvious UB, the compiler sees it at compile time and should just stop the programmer from doing the mistake at all times.

Instead, it's totally possible to just let the programmer tear his leg off for no clear reason.

There are no comments on this comment yet.