Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!vaxine!wjh12!n44a!ima!haddock!johnl From: johnl@haddock.UUCP Newsgroups: net.lang.c Subject: Re: Precedence Question - (nf) Message-ID: <59@haddock.UUCP> Date: Mon, 13-Feb-84 23:38:18 EST Article-I.D.: haddock.59 Posted: Mon Feb 13 23:38:18 1984 Date-Received: Wed, 15-Feb-84 01:07:03 EST Lines: 19 #R:smu:13800001:haddock:12400004:000:480 haddock!johnl Feb 13 15:18:00 1984 In regard to this: cat = foo ? fu = bar : mouse; Precedence has nothing to do with it. Precedence only matters when there are two possible legal parses, such as "a + b * c" which could be either "(a + b) * c" or "a + (b * c)" without precedence to disambiguate. The only possible parse for the first expression is: cat = foo ? (fu = bar) : mouse; so that the "fu = bar" assignment happens before the assignment to cat if it happens at all. Golly. John Levine, ima!johnl