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

Message-Id: <1.5.4.32.19970807204711.0068b5e0@dce03.ipt.br>
Mime-Version: 1.0
Date: Thu, 07 Aug 1997 17:47:11 -0300
To: Teemu Ikonen <cfikonte AT taltta DOT lpr DOT carel DOT fi>, djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: [Q] expression evaluation order

At 15:38 07/08/97 +0300, Teemu Ikonen wrote:

> Theoretically no, in practise it could work.
  ^^^^^^^^^^^^^^^^

This affirmation is plainly wrong. See the another post. ANSI C requires the
particular order when dealing with logical operators in order the so called
"short circuit" rules work. BTW this happens also with ADA.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak                      E-mail: csrabak AT ipt DOT br
DME/ASC                                   Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax:   55-11-268-5996
Av. Prof. Almeida Prado, 532.  Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Raw text -


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