Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion THE POSTINCREMENT TIME

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!newsswitch.lcs.mit.edu!newsfeed.mathworks.com.MISMATCH!newsfeed!enews.sgi.com!sdd.hp.com!usc.edu!rpi!not-for-mail
From: terj...@chello.no (=?ISO-8859-1?Q?Terje_Sletteb=F8?=)
Newsgroups: comp.lang.c++.moderated
Subject: Re: THE POSTINCREMENT TIME
Date: 25 Apr 2003 16:20:20 -0400
Organization: http://groups.google.com/
Lines: 41
Sender: cppm...@netlab.cs.rpi.edu
Approved: jep@[151.161.11.6]
Message-ID: <9e3a34f7.0304250440.212f1044@posting.google.com>
References: <3E9BFD38.3010000@eurocom.od.ua>
 <k92s9vkhgsi1leda5gv9ihq4n191c4lbt3@4ax.com>
 <9e3a34f7.0304180207.46e672e0@posting.google.com>
 <O4Z2KkClvco+Ewi3@robinton.demon.co.uk>
 <9e3a34f7.0304211139.35a62019@posting.google.com>
 <d6651fb6.0304220720.76b64043@posting.google.com>
 <0dmbav8iogrogrh1otrd0aki2d7fe422pj@4ax.com>
 <9e3a34f7.0304230547.6ce135fb@posting.google.com>
 <3ea7065b$1@news.nefonline.de>
NNTP-Posting-Host: netlab.cs.rpi.edu
X-Original-Date: 25 Apr 2003 05:40:04 -0700
X-Submission-Address: c++-sub...@netlab.cs.rpi.edu
X-Auth: PGPMoose V1.1 PGP comp.lang.c++.moderated
	iQBVAwUAPqmYgUHMCo9UcraBAQF/IAIAiszVyajCt8SooOsC1yhTijCN+qRTa616
	gcAr5xcyBksbfIYFDV9ggKwoFed1hodxbzSnntWLjNVpB3b+lAvJlQ==
	=v8JC

"Matthias Hofmann" <hofm...@anvil-soft.com> wrote in message news:<3ea7065b$1@news.nefonline.de>...
> Terje Sletteb <terj...@chello.no> schrieb in im Newsbeitrag:
> 9e3a34f7.0304230547.6ce13...@posting.google.com...
>  > John Potter <jpot...@falcon.lhup.edu> wrote in message
>  news:<0dmbav8iogrogrh1otrd0aki2d7fe422pj@4ax.com>...
>  > > On 22 Apr 2003 16:02:45 -0400, ka...@gabi-soft.de (James Kanze) wrote:
>  > In order to evaluate c and c++ right after each other, with no
>  > intervening sequence point, it seems it would need to first partly
>  > evaluate g(c) (only evaluating the c part, but not calling the
>  > function), and then partially evaluate h(c++).
>  >
>  > Can it do that? Any reference to the standard regarding this would
>  > also be appreciated.
> 
> Yes it can. The compiler is free to evaluate c and c++ in any order before
> calling any of the functions in the example above. I don't quite understand
> what you mean by "partly"

I meant what I wrote, that in order to evaluate g(c), it has to:

evaluate c
call g()

John Potter also confirmed in another posting that it can do what you
say, here:

evaluate c
evaluate c++
call g()

In other words, it can evaluate the expression g(c) interleaved with
another, or partly evaluate it (only evaluate c), before evaluating
another.


Regards,

Terje

      [ Send an empty e-mail to c++-h...@netlab.cs.rpi.edu for info ]
      [ about comp.lang.c++.moderated. First time posters: do this! ]