in reply to Re^4: Quantum Weirdness and the Increment Operator
in thread Quantum Weirdness and the Increment Operator
I think you don't understand the idea behind the concept of "undefined behavior" in language specifications. It doesn't mean that the language will use a random number generator to give you an unpredictable result every time. In most cases, you'll find that the behavior is perfectly reproducible, and you could think of documenting it. Don't do it! Undefined behavior means that compiler writers has the freedom to choose whatever behavior they want, and the users of the language SHOULD NOT rely on the way the behavior is "defined", because the compiler writer has the freedom to change it in the next version.
It's just like saying: cool, this module has this interesting undocumented variable! Let's use it! If you use it, it's under your own risk. The documentation is like a contract. And please don't send a documentation patch to the author before making sure that it's not undocumented for a reason.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: Quantum Weirdness and the Increment Operator
by japhy (Canon) on Jun 24, 2004 at 16:26 UTC | |
by diotalevi (Canon) on Jun 24, 2004 at 17:49 UTC |