www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/26/12:32:11

From: eplmst AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: parse error ... char 0335
Date: 26 Oct 1999 15:16:25 GMT
Organization: Ericsson Erisoft AB, Sweden
Lines: 34
Message-ID: <7v4gk9$nl$1@antares.lu.erisoft.se>
References: <80256816 DOT 00459042 DOT 00 AT mail1 DOT lake DOT ie>
NNTP-Posting-Host: propus-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Sakis DOT Platsas AT lake DOT ie wrote:
: 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


I've read that English (aren't .ie Irland?) keyboards have two pipe
characters. The solution is to find the other one and use that one.


U2, Boy,

							MartinS

- Raw text -


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