Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site maxvax.UUCP Path: utzoo!linus!vaxine!wjh12!genrad!grkermit!masscomp!clyde!burl!ulysses!mhuxl!ihnp4!drutx!houxe!hogpc!pegasus!maxvax!jgw From: jgw@maxvax.UUCP Newsgroups: net.lang.c Subject: Re: C parsing : Significance of spaces Message-ID: <140@maxvax.UUCP> Date: Wed, 25-Apr-84 10:05:09 EST Article-I.D.: maxvax.140 Posted: Wed Apr 25 10:05:09 1984 Date-Received: Fri, 27-Apr-84 00:14:53 EST Organization: AT&T Information Systems, Holmdel NJ Lines: 21 a++++++++++++++++++++++++++++++++++++b - eat this! I am not convinced that a+++b should be resolved as (a++) + b. K&R states that unary operators have a higher precedence than binary ops, and that the former bind right to left. Should not the above be disambiguated as a + (++b)? However it is well known that the semantics of a language and its implementation by a compiler are not always the same ( shock! ). Our compiler (UNIX V) evaluates as (a++) + b. Have you tried a-----b ??? Any programmer worth their salt, never meets these problems due to their judicious use of spaces and parentheses!!! John Weald.