Article View: net.lang.c
Article #9701Re: Expression sequencing query (better test)
From: C Compiler Project(Debbie Coutan...
Date: Tue, 21 Oct 1986 00:05
Date: Tue, 21 Oct 1986 00:05
13 lines
1133 bytes
1133 bytes
There is a new operator in the proposed ANSI C standard that forces
expression grouping, it is the unary plus operator. The unary plus is
only useful for expressions that involve >1 uses of the same operator,
for example: a+b+c
With the unary plus operator a+b+c can be forced to be evaluated as
(a+b)+c using the following: +(a+b) + c
By ANSI's definition this will force (a+b) to be evaluated first.
Looks like somebody thought of the order-of-evaluation problem and
attempted to 'fix' it in the ANSI proposal already.
Technical Details
Message-ID:
<1570004@hpdsd.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!rutgers!sri-spam!sri-unix!hplabs!hpcea!hpda!hpirs!hpisod1!hpisoa1!hpisoa2!hppcgo!hpdsd!cReferences:
<1223@bunker.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!rutgers!sri-spam!sri-unix!hplabs!hpcea!hpda!hpirs!hpisod1!hpisoa1!hpisoa2!hppcgo!hpdsd!c From: c@hpdsd.UUCP (C Compiler Project(Debbie Coutant)) Newsgroups: net.lang.c Subject: Re: Expression sequencing query (better test) Message-ID: <1570004@hpdsd.UUCP> Date: Mon, 20-Oct-86 19:05:20 EST Article-I.D.: hpdsd.1570004 Posted: Mon Oct 20 19:05:20 1986 Date-Received: Tue, 4-Nov-86 01:30:55 EST References: <1223@bunker.UUCP> Lines: 13