From -8121703160533874650
X-Google-Thread: f78e5,174aa7b34b06a51
X-Google-Attributes: gidf78e5,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news4.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: Sat, 26 Nov 2005 19:30: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
From: "Krzysztof Zelechowski" <krixel@qed.pl>
Newsgroups: comp.std.c++
Subject:  Re: Is this really unspecified behavior?
Organization: ATMAN
Message-ID: <dmavuj$1pqg$1@node1.news.atman.pl>
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> <1132809799.629407.12230@z14g2000cwz.googlegroups.com> <15phf.161544$zb5.145459@bgtnsc04-news.ops.worldnet.att.net> <20051125144435.31EA211406E@mscan6.ucar.edu>
X-Complaints-To: abuse@atman.pl
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
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: Sat, 26 Nov 2005 19:26:57 CST
Lines: 30
NNTP-Posting-Host: 65.182.171.162
X-Trace: sv3-79qg5cv2R7XxW16QXK7qbdN4uMRmtQ9Q5nsnDJp7kMxyeWyOqJZwTA+AigJhvIoJTaL+Bx3almUal5d!rE8nxylrvW9gzGQ+70/DIFlZwI7TFSTuWgZUaCNyHSFb2JzL/Zk++eavqZxIuYLR8WRZjQtpIuSm!MYmJL031MMbnka94
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++:2608


Uzytkownik "Hyman Rosen" <hyrosen@mail.com> napisal w wiadomosci 
news:20051125144435.31EA211406E@mscan6.ucar.edu...
> Andrew Koenig wrote:
>> Part of the point is to be able to translate a C++ expression into the 
>> equivalent C expression without changing its meaning.
>
> Since when? Certainly there was a goal that C code should
> carry forward into C++ with its meaning generally unchanged,
> but why would anyone care about going the other way? And if
> that is what you want, you have to avoid all sorts of C++
> constructs anyway, so you would just avoid C-ambiguous
> expressions as well.
>

That is how the C++ front end works: it translates C++ to C.  But there is 
an easy workaround: create an automatic variable for each function argument; 
assign the values to the local variables one by one creating sequence points 
between them; call the function with the corresponding local variables.

Happy coding
Chris 


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



