On Thu, 13 Oct 2011, Keith M wrote:
While it is more trivia than anything else:
A man with more than one window open, say browser and C editor,
accidentally pastes a URL into the white space in the middle of his C
source code. The source code previously compiled fine.
He goes to recompile it, what happens?
Does it compile? Why or why not?
Thought it was cute.
You said "into the white space". You did NOT say on its own line of white
space.
On original K&R C compilers, it'll give a syntax error.
On newfangled C compilers that corrupt the C concept of white space, the
"//" will turn everything else on that line into part of the comment.
stuff whitespace stuff
becomes
stuff whitespace comment
In a previous comment
Kernighan would format
xxxx(yyy)
{
zzzz;
}
Ritchie woukld format
xxxx(yyy) {
zzzz;
}