🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4428

Re: On sequence points and evaluation order

#4428
From: Kevin Quitt
Date: Tue, 05 Dec 1995 23:07
16 lines
1097 bytes
On Fri, 01 Dec 1995 06:47:14 GMT, jcoffin@rmii.com (Jerry Coffin) wrote:
>	i = f(), i+i;
>
>I believe the result is still technically undefined.  The assignment
>operator doesn't force a sequence point, so in theory the compiler could
>treat evaluate the i on the left side before or after the entire right
>side.

The assignment is not a sequence point, but the comma is, so the assignment
must be made before i+1 is evaluated.


-- 
#include <standard.disclaimer>                   http://emoryi.jpl.nasa.gov/
 _
Kevin D Quitt  USA 91351-4454           96.37% of all statistics are made up
Technical Details
Message-ID: <30c4d04e.11829416@llyene.jpl.nasa.gov>
Path: arc1-ca.pugleaf.net!europa.chnt.gtegsc.com!wlbr!llyene!news
References: <49l428$od0@bolverk.cs.cornell.edu> <49m4kf$d6v@natasha.rmii.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!europa.chnt.gtegsc.com!wlbr!llyene!news
From: kdq@emoryi.jpl.nasa.gov (Kevin Quitt)
Subject: Re: On sequence points and evaluation order
Message-ID: <30c4d04e.11829416@llyene.jpl.nasa.gov>
Sender: news@llyene.jpl.nasa.gov
Reply-To: kdq@emoryi.jpl.nasa.gov
Organization: Jet Propulsion Laboratory
X-Newsreader: Forte Agent .99c/16.141
References: <49l428$od0@bolverk.cs.cornell.edu> <49m4kf$d6v@natasha.rmii.com>
Date: Tue, 5 Dec 1995 23:07:23 GMT