🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9540

Re: expression sequencing bugs

#9540
From: J. Hodgson
Date: Fri, 10 Oct 1986 01:31
9 lines
1125 bytes
 I ran the (in)famous 
	a= ((b=1,b)) + ((b=2,b)) + ((b=3,b))
on three different versions of C. I got 6 from MIX.C (for reasons I understand,
it works left to right), 9 from the C that comes in 4.3 BSD, which I also
understand (all the left hand parts first) and 7 (!!) from an early Lattice C.
I can derive two explanations for this and confess that I did not bother to try
the 1,2,4 version that might have shown which was the right one. In any case
I haven't seen 7 claimed yet, so I do it now!
Technical Details
Message-ID: <189@sjuvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!caip!cbmvax!bpa!sjuvax!jhodgson
References: <4197@brl-smoke.ARPA> <760@oakhill.UUCP> <279@hafro.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!caip!cbmvax!bpa!sjuvax!jhodgson
From: jhodgson@sjuvax.UUCP (J. Hodgson)
Newsgroups: net.lang.c
Subject: Re: expression sequencing bugs
Message-ID: <189@sjuvax.UUCP>
Date: Thu, 9-Oct-86 21:31:07 EDT
Article-I.D.: sjuvax.189
Posted: Thu Oct  9 21:31:07 1986
Date-Received: Sat, 11-Oct-86 19:35:59 EDT
References: <4197@brl-smoke.ARPA> <760@oakhill.UUCP> <279@hafro.UUCP>
Reply-To: jhodgson@sjuvax.UUCP (J. Hodgson)
Organization: St. Joseph's Univ., Phila. PA
Lines: 9
Keywords: 6,7,9
Summary: 3 different answers.