Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!dvlmarv!zaphod!billj From: billj@zaphod.UUCP Newsgroups: comp.lang.c Subject: Re: Style [++i vs i++] Message-ID: <1748@zaphod.UUCP> Date: Sat, 4-Jul-87 14:04:59 EDT Article-I.D.: zaphod.1748 Posted: Sat Jul 4 14:04:59 1987 Date-Received: Sun, 5-Jul-87 01:05:24 EDT References: <17310@amdcad.AMD.COM> <246@hubcap.UUCP> Reply-To: billj@zaphod.UUCP (Bill Jones) Distribution: na Organization: Develcon Electronics, Saskatoon SK Canada Lines: 21 In article <246@hubcap.UUCP> beede@hubcap.UUCP (Mike Beede) writes: >There >is no reason a compiler needs to generate code differently for i++; and >++i; if that is the entire expression (and statement). Yet in the opening section of the C++ Book, we find "The name C++ was coined by Rick Mascitti. The name signifies the evolutionary nature of the changes from C. '++' is the C increment operator. The slightly shorter name C+ is a syntax error; it has also been used as the name of an unrelated language. Connoisseurs of C semantics find C++ inferior to ++C." I suspect the reason is that, as others have mentioned, C++ implies that the value of the expression is determined before the increment. Are Bjarne or the other abovementioned connoisseurs listening, and willing to reveal the answer? -- Bill Jones, Develcon Electronics, 856 51 St E, Saskatoon S7K 5C7 Canada uucp: ...ihnp4!sask!zaphod!billj phone: +1 306 931 1504