Here's yet another reason to stay away from C and C++:
The CPP standard says that to continue a line, \ must be the last
character on the line. Not the last non-white-space character. So, if
you are on a Unix/Linux machine, and inadvertently get a file with DOS
end-of-line characters, the CR before the LF convinces CPP that the \ is
not the last character on the line, and you get a raft of inscrutable
error messages.
Maybe this could be considered a defect in implementations of CPP
instead of a defect in its standard, but even so it illustrates once
again the serious portability problems with C and C++.
--
Van Snyder | What fraction of Americans believe
[log in to unmask] | Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or
disapproved by JPL, CalTech, NASA, the President, or anybody else.
|