delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/26/10:22:02

From: Sakis DOT Platsas AT lake DOT ie
X-Lotus-FromDomain: LAKELN
To: djgpp AT delorie DOT com
Message-ID: <80256816.00459042.00@mail1.lake.ie>
Date: Tue, 26 Oct 1999 13:39:48 +0100
Subject: parse error ... char 0335
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019