Xref: csiph.com comp.arch:33299 Newsgroups: comp.arch Path: csiph.com!weretis.net!feeder6.news.weretis.net!news.glorb.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!kithrup.com!mrs From: mrs@kithrup.com (Mike Stump) Subject: Re: The freedom that give us C++ and C Message-ID: Date: Fri, 29 Jan 2016 23:38:05 GMT References: Organization: Kithrup Enterprises, Ld. X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Lines: 13 In article , Nick Maclaren wrote: >In article , >My problem is not that it is left unspecified, but that it claims to >be specified, and there are at least half a dozen reasonable ways to >interpret the wording, most of which are believed by at least some >people. I don't CARE what it specifies, and my failed attempt was to >get a simple, statement into the standard: So, for utility on a system with threads or anything to do with muti-process shared memory, one wants C11 and C++11 or later and atomics. In those language standards, the semantics are as stated. The problem with previous language standards is they didn't defined multi-process, multi-thread situations as these were beyond those standards. Indeed, the simple ++a is not safe.