Name: nkR10003 Date: 05/14/2002
Setting '\n' to be an ordinary makes behaivior of StreamTokenizer
unpredictable. It still works like EOL terminator but does not encrease
line number. The JavaDoc comments for ordinaryChar() says that:
"...
It removes any special significance the character has as a comment character,
word component, string delimiter, white space, or number character...
"
One can say that it does not imply that setting '\n' to be an ordinary
character should change its treatment as an EOL marker, but it remains
unclear why it does not increase line number though.
Even if current behaivior is correct, the spec should be corrected to reflect
this rather questionable behaivior.
======================================================================
Setting '\n' to be an ordinary makes behaivior of StreamTokenizer
unpredictable. It still works like EOL terminator but does not encrease
line number. The JavaDoc comments for ordinaryChar() says that:
"...
It removes any special significance the character has as a comment character,
word component, string delimiter, white space, or number character...
"
One can say that it does not imply that setting '\n' to be an ordinary
character should change its treatment as an EOL marker, but it remains
unclear why it does not increase line number though.
Even if current behaivior is correct, the spec should be corrected to reflect
this rather questionable behaivior.
======================================================================