From -2144746378979377540
X-Google-Thread: f78e5,2030f7dfcae4edfc,start
X-Google-NewGroupId: yes
X-Google-Attributes: gid7894ca11fe,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.66.73.7 with SMTP id h7mr1851049pav.6.1349422802556;
        Fri, 05 Oct 2012 00:40:02 -0700 (PDT)
MIME-Version: 1.0
Path: g9ni25402pbh.1!nntp.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 05 Oct 2012 02:40:02 -0500
Return-Path: <cppmods@mcgurn.dreamhost.com>
Sender: std-cpp-request@vandevoorde.com
Approved: james.dennett@gmail.com
Message-ID: <506de288$0$71204$742ec2ed@news.sonic.net>
Newsgroups: comp.std.c++
From: Andy Lutomirski <luto@amacapital.net>
Subject: What's a "side effect"
Organization: Sonic.Net
X-Original-Date: Thu, 04 Oct 2012 12:24:56 -0700
X-Submission-Address: std-cpp-submit@vandevoorde.com
To: undisclosed-recipients:;
X-Spam-Status: No, score=0.5 required=5.0 tests=HEADER_SPAM,RP_MATCHES_RCVD,
	SARE_HEAD_HDR_APPROV,UNPARSEABLE_RELAY autolearn=disabled version=3.3.1
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on harlem.dreamhost.com
Date: Fri,  5 Oct 2012 02:35:23 CST
Lines: 23
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-BV6kt3riKXXZjaq3WcbhcCyGxJtdhaPSOUNIJJvFDehJMwF1TyqA7Dg0bi4MtMs0s+AA/B9WaKEyxln!DDRLl6dCCHMtqiP4aQD/ryo5Orehj2s/pk8MwOUm8Xkj/16gMQQ7Bv8tNj8B+PXbUBozVg==
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
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.40
Bytes: 2282
X-Original-Bytes: 2221
Content-Type: text/plain; charset=ISO-8859-1


I'm trying to userstand the memory model.  [intro.multithread] mentions
lots of things like:

A release sequence ... is a maximal contiguous sub-sequence of side effects

I know what a /visible/ side effect is (see #13), but that doesn't tell
me what a side effect is in the first place.  I assume that a "side
effect" is just a write (e.g. "a = b" has a side effect of modifying a),
but AFAICS the N3376 has no language to support that assumption.

Am I right?  Should I submit a defect report?

Thanks,
Andy


--
[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



