From -8197207033970063661
X-Google-Thread: f78e5,174aa7b34b06a51
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.google.com!news.glorb.com!news.alt.net!comp-std-cpp-robomod!not-for-mail
From: "4zumanga@gmail.com" <4zumanga@gmail.com>
Newsgroups: comp.std.c++
Subject: Re: Is this really unspecified behavior?
Followup-To: comp.std.c++
Date: Thu,  8 Dec 2005 01:03:59 CST
Organization: http://groups.google.com
Lines: 13
Approved: Fergus Henderson <fjh@cs.mu.oz.au>, moderator of comp.std.c++
Message-ID: <1133993471.358737.108940@g43g2000cwa.googlegroups.com>
References: <1132629737.664847.151630@o13g2000cwo.googlegroups.com>
   <1132662585.882464.24110@f14g2000cwb.googlegroups.com>
   <E1EeZw5-0004wI-00@chx400.switch.ch>
   <XBQgf.150724$zb5.113482@bgtnsc04-news.ops.worldnet.att.net>
   <1132759176.368850.264850@g43g2000cwa.googlegroups.com>
   <H1phf.161529$zb5.99785@bgtnsc04-news.ops.worldnet.att.net>
   <1132933832.802917.153350@g14g2000cwa.googlegroups.com>
   <1133551647.532929.325730@z14g2000cwz.googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
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
X-Trace: posting.google.com 1133993479 31950 127.0.0.1 (7 Dec 2005 22:11:19 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 7 Dec 2005 22:11:19 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/416.12 (KHTML, like Gecko) Safari/416.13,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: g43g2000cwa.googlegroups.com; posting-host=138.251.209.208;
   posting-account=rhm8zg0AAAAB_CTpLQ2qYqQZWFJGu29h
X-Virus-Scanned: amavisd-new at ucar.edu
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
X-Virus-Scanned: amavisd-new at cs.mu.OZ.AU
Xref: g2news1.google.com comp.std.c++:2700

While this is order of function execution, I've had a number of people
suprised that:

cout << f() << f() << f() << endl;

Doesn't define the order in which the fs are executed.

---
[ 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                       ]



