delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/16/21:50:14

From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [Q] expression evaluation order
Date: Fri, 15 Aug 1997 09:24:14 -0700
Organization: Alcyone Systems
Lines: 20
Message-ID: <33F482AE.2FF2318D@alcyone.com>
References: <1 DOT 5 DOT 4 DOT 32 DOT 19970807214727 DOT 0069a31c AT dce03 DOT ipt DOT br>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Cesar Scarpini Rabak wrote:

> ANSI does not _try_, it demands!, if some compiler does not conform is
> faulty (not 'buggy', which you could live with).
> 
> In fact, this is a behaviour constructed in the design of the language:
	...
> This is basic in C!

Absolutely.  In fact, the short circuiting properties of && and || is why
there are separate logical and Boolean operators.  This even predates K&R
C; this short circuiting properties were created in _traditional_ C.

-- 
       Erik Max Francis, &tSftDotIotE / email / mailto:max AT alcyone DOT com
                     Alcyone Systems /   web / http://www.alcyone.com/max/
San Jose, California, United States /  icbm / 37 20 07 N  121 53 38 W
                                   \
   "Love is not love which alters / when it alteration finds."
                                 / William Shakespeare, _Sonnets_, 116

- Raw text -


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