It's the job of a language designer to define everything.
Re:Int a = 5; a = a++ + ++a; a =? (2011)
by Dylan16807 on Friday May 15, 2026 @02:05AM
(#48145092)
C should do better about the things that could be readily defined, but there's no way to have arbitrary pointers and define everything.
Re:Int a = 5; a = a++ + ++a; a =? (2011)
by thaumasiotes on Friday May 15, 2026 @02:43AM
(#48145310)
> but there's no way to have arbitrary pointers and define everything.
What's the undefined behavior in assembly?
Re:Int a = 5; a = a++ + ++a; a =? (2011)
by Dylan16807 on Friday May 15, 2026 @03:06AM
(#48145445)
Assembly is kind of at the crossroads of everything being defined and nothing being defined, when you consider things like writing random data to memory and executing it... But anyway here's the first thing I found to answer that: https://news.ycombinator.com/item?id=9578178
Probably more important, way too many things in assembly vary by exact model. Can you name a portable language that fits those criteria?
But more seriously it's the job of the program to not do undefined things.