From -4586084108474549800
X-Google-Thread: f78e5,174aa7b34b06a51
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.speakeasy.net!news.speakeasy.net.POSTED!not-for-mail
NNTP-Posting-Date: Wed, 23 Nov 2005 08:50:01 -0600
Return-Path: <devnull@stump.algebra.com>
X-Authentication-Warning: mulga.cs.mu.OZ.AU: fjh set sender to devnull@stump.algebra.com using -f
X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov)
Delivered-To: std-c++@ucar.edu
Message-Id: <200511231401.jANE1BuC092897@horus.isnic.is>
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: Is this really unspecified behavior?
MIME-version: 1.0
Content-type: text/plain; format=flowed; charset=ISO-8859-1
Content-transfer-encoding: 7bit
X-Accept-Language: en-us, en
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
Newsgroups: comp.std.c++
References: <1132629737.664847.151630@o13g2000cwo.googlegroups.com>
 <1132722639.345095.296070@f14g2000cwb.googlegroups.com>
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Date: Wed, 23 Nov 2005 08:45:36 CST
Lines: 18
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-X95NPOBCxvgyiadNJkejdUMjxF9UAhsacAy5XvfssPDF9Dgr+xeOnkZeunxynNElIrUI76m5EDOoe6+!/euzw9xkdzml2YNgnMtJQlqqROvlX8GeNNAkYVqux8XBRqkvqLTGAUFUZYSRBt5mdWF1RAORGOkJ!GXHM4R/WUt/slKT0joiZ1HyA1nu9
X-Complaints-To: abuse@speakeasy.net
X-DMCA-Complaints-To: abuse@speakeasy.net
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.32
Xref: g2news1.google.com comp.std.c++:2580

Greg Herlihy wrote:
> Essentally, the result of evaluating i = v[i++] is unspecified because
> i's value is accessed only once.

No, it's undefined in the built-in case, because i is modified
twice in the same expression (by the increment and by the
assignment) without an intervening sequence point.

Once again, I invite everyone in the newsgroup to notice how
no one understands the rules as they exist. It's asinine not
to have a defined order of evaluation, including side effects.

---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.jamesd.demon.co.uk/csc/faq.html                       ]



