🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c
Article #9425

Re: Re: Expression sequencing query

#9425
From: Ken Harrenstien
Date: Sun, 28 Sep 1986 21:53
13 lines
1165 bytes
Someone asked what other compilers produced for the expression:
	a = ((b=1),b) + ((b=2),b) + ((b=3),b);

I just tried it on KCC, the PDP-10 C compiler that I and others have
developed (not a commercial product, but available).  It returns 6.
Of course, if it didn't I would have fixed it!
	As a general observation on questions of this nature, I would
expect that compilers written since the publication of H&S have been
much better (cleaner, more consistent, more predictable, etc) than
their predecessors, because H&S is a much, MUCH better guide than K&R.
Unfortunately for future implementors, the ANSI draft is more like K&R
than H&S...
-------
Technical Details
Message-ID: <4230@brl-smoke.ARPA>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!lll-lcc!lll-crg!rutgers!caip!brl-adm!brl-smoke!smoke!KLH@SRI-NIC.ARPA

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbatt!ihnp4!qantel!lll-lcc!lll-crg!rutgers!caip!brl-adm!brl-smoke!smoke!KLH@SRI-NIC.ARPA
From: KLH@SRI-NIC.ARPA (Ken Harrenstien)
Newsgroups: net.lang.c
Subject: Re: Re: Expression sequencing query
Message-ID: <4230@brl-smoke.ARPA>
Date: Sun, 28-Sep-86 17:53:45 EDT
Article-I.D.: brl-smok.4230
Posted: Sun Sep 28 17:53:45 1986
Date-Received: Tue, 30-Sep-86 19:45:30 EDT
Sender: news@brl-smoke.ARPA
Lines: 13