Re:A Guide to Undefined Behavior in C and C++
by saagarjha on Friday August 18, 2023 @12:03AM
(#37171280)
They've tried. Language lawyers are very good at their jobs, though.
[ Parent
| on HN ]
Re:A Guide to Undefined Behavior in C and C++
by Gibbon1 on Friday August 18, 2023 @06:43AM
(#37173809)
I think at this point unfortunately regulators needs to start getting involved.
Re:A Guide to Undefined Behavior in C and C++
by uecker on Friday August 18, 2023 @07:09AM
(#37174063)
Well, the argument brought up is that users want it this way, so this is existing practice which is implemented and should be standardized. So please complain and file bugs.
Also use the compiler and language feature that help, such as variably-modified types such as bare pointers, attributes, compiler flags, etc.