🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4415

Re: On sequence points and evaluation order

#4415
From: Tanmoy Bhattacharya
Date: Sat, 02 Dec 1995 04:10
27 lines
1779 bytes
In article <49nbij$e1c@rdsunx.crd.ge.com>, volpe@bart.crd.ge.com (Christopher
R. Volpe) writes: 
<snip>
|> Perhaps you meant "i = (f(), i+i)". This is still not undefined. The
|> expression on the right is used to compute the new value of i in the top
level 
|> assignment. And the subexpression on the right has a sequence pint between
the 
|> evaluatin of "i=1" in f(), and the evaluation of "i+i". I see nothing
|> technically wrong with this according to the rules of the STandard.

Is `i + (f(),i+i)' well defined? Or to focus in, is `i + (f(),1)' well
defined? i.e. is the sequence point before and after the evaluation of i=1 by
calling f _between_ the evaluation of the i in i + and the modification? I
thought this issue was not resolved last time it was discussed here. 

Is this any different from i = (f(),1)?

Cheers
Tanmoy
-- 
tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
<http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
Technical Details
Message-ID: <49ojjp$hsm@newshost.lanl.gov>
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
References: <49l428$od0@bolverk.cs.cornell.edu> <49m4kf$d6v@natasha.rmii.com> <49nbij$e1c@rdsunx.crd.ge.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy
From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
Newsgroups: comp.std.c
Subject: Re: On sequence points and evaluation order
Date: 2 Dec 1995 04:10:33 GMT
Organization: Los Alamos National Laboratory
Distribution: world
Message-ID: <49ojjp$hsm@newshost.lanl.gov>
References: <49l428$od0@bolverk.cs.cornell.edu> <49m4kf$d6v@natasha.rmii.com> <49nbij$e1c@rdsunx.crd.ge.com>
NNTP-Posting-Host: qcd.lanl.gov