J
john
Hello world:
Gcc 4.4.3 generates a compiler error if I try to define a variable or
function called for.
However, it seems to me that because of the special syntax of the for
keyword (parentheses with two semicolons), it is always possible to
distinguish unambiguously between for being used as a keyword and for
being used as a variable or function name.
So why is it disallowed by Gcc? Is it a compiler bug or was this an
oversight when the C language was created?
Cheers
John
Gcc 4.4.3 generates a compiler error if I try to define a variable or
function called for.
However, it seems to me that because of the special syntax of the for
keyword (parentheses with two semicolons), it is always possible to
distinguish unambiguously between for being used as a keyword and for
being used as a variable or function name.
So why is it disallowed by Gcc? Is it a compiler bug or was this an
oversight when the C language was created?
Cheers
John