4 ms·
Since he's talking about undefined behavior in a lot of the cases, the answer to all your questions is, "Yes." That's pretty obvious, so maybe he thought it wen
by obstinate 12y ago
Since he's talking about undefined behavior in a lot of the cases, the answer to all your questions is, "Yes." That's pretty obvious, so maybe he thought it went without saying.
- fizixer 12y agoNot sure which of my questions you're referring to. As I replied to others, saying "bar() is invoked" is not only not obvious, it's incorrect. bar() may or may not be invoked.
- heinrich5991 12y agoThat's correct, what he wanted to say is probably that there exists compilers where `bar()` is invoked. Don't be so snarky, try to understand what the author ment.
- Gibbon1 12y agoIt's up to the author to show us this mythical compiler.
- Dylan16807 12y agoIt's up to the author to show that it's a valid compiler, no more. The question is whether a behavior is valid, not whether it is mandatory. Odd of you to use 'mythical' when one of the most common compilers in existence does this.
- valleyer 12y agoYou are misparsing. He's effectively saying: imagine you are testing this code, and x == NULL but "bar() is invoked". Is the compiler buggy?