Re:The C23 edition of Modern C is now available for free
by ahoka on Tuesday October 15, 2024 @04:03PM
(#41852548)
By definition UB cannot be safe.
[ Parent
| on HN ]
Re:The C23 edition of Modern C is now available for free
by marssaxman on Tuesday October 15, 2024 @05:11PM
(#41853174)
this depends on your choice of definition for "safe"
Re:The C23 edition of Modern C is now available for free
by Maxatar on Tuesday October 15, 2024 @09:58PM
(#41854910)
The definition given by the C standard allows for safe undefined behavior.
Re:The C23 edition of Modern C is now available for free
by umanwizard on Wednesday October 16, 2024 @09:21AM
(#41858758)
Something can be UB according to the standard, but defined (and safe) according to a particular implementation. Lots of stuff is UB according to the C or C++ standard but does something sensible in gcc and/or clang.