|
|
|
|
|
by perl4ever
2497 days ago
|
|
There's more than one kind of undefined behavior, and probably more than one way to categorize it. The distinction I was making is between "what the...standard considers UB" and what the standard doesn't consider period. For instance, the standard doesn't (I assume) declare anything about the effect of cosmic rays on C++ programs. However, that does not mean that C++ compilers are designed or should be designed not to work unless run on equipment that is completely shielded. There is a semantic difference that seems important to me, but which continually slips away in these discussions. And it's palpably related, for me, to the issues people have with compiler behavior. It's not totally the standard at issue, I don't think, but the culture that provides its context. It would be nice if following a language standard meant that you get to live in a nice and predictable world, but isn't this an absurd statement? |
|