logoalt Hacker News

FooBarWidgettoday at 10:27 AM1 replyview on HN

> Not every high-level language gives you byte-level access to the representation of memory objects.

Any code that ventures anywhere near that territory is 99% Undefined Behavior. It's almost impossible to write proper C/C++ code that isn't UB while touching byte-level representations.


Replies

ueckertoday at 10:29 AM

This is certainly not true. Accessing bytes of objects is well-defined in C.

show 1 reply