From -1719580379998837580 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: Tue, 06 Dec 2005 23:30:30 -0600 Return-Path: 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 From: kuyper@wizard.net Newsgroups: comp.std.c++ Subject: Re: Is this really unspecified behavior? Organization: http://groups.google.com Message-ID: <1133929072.847443.157590@g43g2000cwa.googlegroups.com> References: <1132629737.664847.151630@o13g2000cwo.googlegroups.com> <1132662585.882464.24110@f14g2000cwb.googlegroups.com> <1132759176.368850.264850@g43g2000cwa.googlegroups.com> <1132933832.802917.153350@g14g2000cwa.googlegroups.com> <1133551647.532929.325730@z14g2000cwz.googlegroups.com> <1133583412.951239.208510@g49g2000cwa.googlegroups.com> <3vlsa2F16leqsU1@individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g43g2000cwa.googlegroups.com; posting-host=66.234.255.45; posting-account=bPBxkgwAAABzUwlEAMy-xGlLqZFJ5Jz_ X-Virus-Scanned: amavisd-new at ucar.edu X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU Approved: Fergus Henderson , moderator of comp.std.c++ X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU Date: Tue, 6 Dec 2005 23:28:11 CST Lines: 27 NNTP-Posting-Host: 65.182.171.162 X-Trace: sv3-hMn5fjf7x8YkKv+s2sM29ZD5kM+Pic/8tsqpTzIip35EaWzrEYsz5SlzjflCEUzyAnSbQWOGyv3TyJ+!Qsc2XI0xm8XymMaFXpCR2WcTsfFa9hTf2AAvxR6j5wWVjKoYlv3PKnZLJ/RJ+tIKqPJuVsu+PD0O!C4i9RkKKMEvxLjBOwO3YkcDatWUGdpDHm3tcd77x8pA= 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++:2681 "Bo Persson" wrote: > "Hyman Rosen" skrev i meddelandet > news:E1EjGBD-0005T8-00@chx400.switch.ch... . > > I don't know for sure, but one guess would be code like this, > > cout << "xxx" << f() << "yyy" << g() << "zzz" << h() << "\n"; > > where the authors don't realize that the function calls can > > happen in any order. > > If the functions really affect each other, this is *really* bad code. > Why don't we require a diagnostic > > Warning: Terrible code - please rewrite! > > instad of having the compilers make it work anyway? Of course it's bad code. The point was that people who write such code would have a motive for pressuring implementors to continue making it work as they expect it to. That's a real type of pressure that implementors face. --- [ 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 ]