TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: JAVIER KOHEN
from: CRAIG A MCKAY
date: 1997-05-03 17:37:00
subject: OOP

Y'ello Javier!
 CAM>> #define OOP 1
 CAM>> int C = 1 ;
 CAM>> (C + OOP == C++)                 // originally had (C++ ==
 CAM>> C + OOP) but that                                 //
 CAM>> wouldn't be right... would it?
 JK> This isn't right either, the right would be C + OOP == ++C :/
Hmm, well, another chap helpfully pointed out that it is not stated the order
of evaluation.  I fully acknowledge what I said was wrong, and I can't 
elieve
I was so daft to post the message in this exacting, almost pedantic 
environment.  Folks just like myself.
I'd like to hear Thomas Maeder explain exactly why the results of the
comparisons are unspecified.  I can't understand how that would work...  I
mean, I've written heaps of programs where changes happen on both sides of an
equality operator.  I don't doubt him, I just would like confirmation.
                            Fido = 2:259/33
  --Craigzilla++        Internet = McMoose@sol.co.uk
                             WWW = http://www.taynet.co.uk/users/mcmoose/
--- GEcho 1.00
---------------
* Origin: The Kilted Bun, Letham Angus -- hame o' the McMoose (2:259/33)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.