On Oct 26, 2005, at 1:16 PM, Andrew Pinski wrote:
What I am trying to say is that
the only reason why this was brought up was because of some little
ASCII art (ASCII art does have its place in comments, see rs6000.c for
an example of where ASCII art actually helps). If there was another
reason, like for an example someone depends on implementation defined
behavior which actually changes the meaning of the code like
bitwise operators
I believe I may have not described the situation sufficiently
clearly. My apologies.
Yes, this does have to do with ASCII art. But no, it is not simply a
matter of messing up the comments. Code behavior can change. What
was working code can stop working. Or even worse, the code can
compile and have different run time behavior:
int x = 0;
void f()
{
// ascii art \ <white space here>
int x = 1;
if (x)
do_thing1();
else
do_thing2();
}
If end-of-line white space is stripped in phase 1, do_thing2() is
called. If end-of-line white space is not stripped, do_thing1() is
called.
-Howard