Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!harpo!decvax!cca!ima!ism780!jim From: jim@ism780.UUCP Newsgroups: net.lang.c Subject: Re: Re: return expr and if expr - (nf) Message-ID: <171@ism780.UUCP> Date: Wed, 16-May-84 00:35:50 EDT Article-I.D.: ism780.171 Posted: Wed May 16 00:35:50 1984 Date-Received: Thu, 17-May-84 05:16:15 EDT Lines: 17 #R:gloria:-16200:ism780:12500007:000:455 ism780!jim May 14 19:36:00 1984 > "if expr" is impractical. > "return expr" is unambiguous, but how would you parse > > if x ++ y; How would you parse if (x) if (y); else z; ? The general rule is that shift takes precedence over reduce, so if x ++ y; ==> if (x ++) y; I am not saying allowing "if expr" is good language design (is the concept relevant in a discussion about C?), just what I would expect if it were allowed. -- Jim Balter, INTERACTIVE Systems (ima!jim)