From: agate!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!col.hp.com!cs
Subject: Re: Software vendors not using Ada but C
Date: 22 Jun 93 15:33:02 GMT [thread overview]
Message-ID: <1993Jun22.153302.5375@nugget.rmNUG.ORG> (raw)
In article <20366@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard
A. O'Keefe) writes:
>
> > Consider the generic C statement: c=a+++b; . > > This
> ambiguous statement can mean four things which are all equally
> > admissible as ANSI C:
>
> This is outrageously false. The ISO standard, section 6, subsection
> Semantics, paragraph 2, and example 2 make it crystal clear that
> there is precisely one way of dividing this into tokens:
> {c} {=} {a} {++} {+} {b} {;} The grammar admits only one
> parse, and that parse admits only the interpretation > 3. c =
> a + b ; a = a + 1 ; (If c and a are aliases, the construct is
> explicitly undefined.)
>
The original claim startled me into action. I tested this on 3
compilers, 2 for DOS and gcc on Unix. All three got the same
results and they matched option 3, that is a + b; a = a + 1;
I personally hate C and want all the ammunition against it I can
get but false claims such as this don't help.
--
Bob Love rlove@raptor.rmnug (NeXT Mail OK)
BIX: rlove
--------------------------------------------------------------------------
next reply other threads:[~1993-06-22 15:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1993-06-22 15:33 agate!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!col.hp.com!cs [this message]
-- strict thread matches above, loose matches on Subject: below --
1993-06-27 12:38 Software vendors not using Ada but C David Weller
1993-06-25 23:39 Mark Bayern
1993-06-24 6:05 ghost.dsi.unimi.it!univ-lyon1.fr!scsing.switch.ch!epflnews!disuns2.epfl.c
1993-06-23 22:10 Michael Feldman
1993-06-23 20:44 cis.ohio-state.edu!math.ohio-state.edu!uwm.edu!ogicse!netnews.nwnet.net!n
1993-06-23 20:33 Robert Firth
1993-06-23 19:07 Bill Yow
1993-06-22 12:30 Mike King
1993-06-22 6:50 cis.ohio-state.edu!magnus.acs.ohio-state.edu!math.ohio-state.edu!cs.utexa
1993-06-18 14:19 Colin James 0621
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox