www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/02/23:38:02

From: Paul Shirley <Paul AT chocolat DOT foobar DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: how to interpret this...
Date: Mon, 2 Dec 1996 23:36:16 +0000
Organization: DrinkSoft
Lines: 12
Distribution: world
Message-ID: <coUZoAAwf2oyEwxk@chocolat.foobar.co.uk>
References: <57ve1o$rfk AT lyra DOT csx DOT cam DOT ac DOT uk>
NNTP-Posting-Host: chocolat.foobar.co.uk
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <57ve1o$rfk AT lyra DOT csx DOT cam DOT ac DOT uk>, "G.P. Tootell"
<gpt20 AT thor DOT cam DOT ac DOT uk> writes
>(a==b==c==0)

Because all the '==' operators have equal precedence C is allowed to
evaluate them in *any* order it likes.
About the only one it won't use is a==b && b==c && c==0 ;) since each
'==' evaluation reduces its 2 inputs to a boolean value (destroying the
value you planned on testing ;)

-- 
Paul Shirley

- Raw text -


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