www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/30/13:19:58

Date: Tue, 30 Mar 1999 20:19:50 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Message-Id: <199903301819.UAA22255@acp3bf.physik.rwth-aachen.de>
To: abonifati AT telsa DOT it (Bonifati)
Cc: djgpp AT delorie DOT com
Subject: Re: short circuit evaluation
Newsgroups: comp.os.msdos.djgpp
Organization: RWTH Aachen, III. physikalisches Institut B
X-Newsreader: TIN [version 1.2 PL2]
Reply-To: djgpp AT delorie DOT com

In article <7dqv06$81b$1 AT fe1 DOT cs DOT interbusiness DOT it> you wrote:

> I need to disable/enable complete bool eval in RHide.
> I have found nothing about short circuit evaluation in rhide or djgpp
> manuals.

That's because evaluation of boolean expression is *always* short
cirtuited, in C. The original designers of the language decided that,
and it has been cast into the international standard on C, as well.
This is not addressed in the docs you searched because none of them
deals with the definition of C, itself.

You cannot switch to 'complete bool eval' in any C compiler.  If you
have one where you can do that, the language it compiles is no longer
C.

--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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