Path: utzoo!attcan!uunet!mcsun!unido!rwthinf!cip-s02!berg From: berg@cip-s02.informatik.rwth-aachen.de (SRB) Newsgroups: comp.lang.c Subject: Re: () ignored in some expressions Message-ID: <2575@rwthinf.UUCP> Date: 11 Apr 90 13:57:28 GMT References: <48079@lanl.gov> <1272@sdrc.UUCP> <1458@tkou02.enet.dec.com> Sender: news@rwthinf.UUCP Lines: 13 In article (diamond@tkovoa) writes: >This whole discussion concerns whether () may be ignored. In ANSI, >for "(a + b) + c", the () must be obeyed. Now the compiler must >add a and b first, then add c, or else do something that has the >same exact behavior. Correct me if I'm wrong, but I thought that if you write it simply as "(a + b) + c" then the compiler may still ignore the (). But ANSI states: if you write it as "+(a + b) + c" (note the unary plus), then the compiler has to evaluate (a+b) first. -- Sincerely, | berg@cip-s01.informatik.rwth-aachen.de Stephen R. van den Berg | ...!uunet!mcsun!unido!rwthinf!cip-s01!berg