Mail Archives: djgpp/1999/10/26/10:22:02
I am using djgpp 2.02 inside the Win98 GUI from a command prompt.
Most programs I tried until now worked perfectly, as expected :)
BUT...
When a line in the code reads something like this:
... if ((string[i] == ' ') || ....)
I get a "parse error ... char 0335" (presumably that's the "|" character)
whereas, if I substitute || with &&:
... if ((string[i] == ' ') && ....)
the code works OK. It seems that the "logical OR" operator is mishandled somehow
in this environment.
Actually, when using RHIDE, the "&&" string was correctly identified as a
"reserved" symbol, being in while foreground. However, the "||" string is shown
with a YELLOW foreground, which means it's NOT considered as a reserved symbol.
Any ideas? Tried the FAQ, the list archives - zilch. I suspect it's some kind of
misinterpretation of the character "|" in my context, but I can't see the reason
myself.
Thanks in advance
- Raw text -