🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4251

Re: Comma operator in constant expression

#4251
From: Paul Long
Date: Thu, 19 Oct 1995 18:51
22 lines
1783 bytes
diamond@jrd.dec.com (Norman Diamond) wrote:
[snip]
>I think the answer to Mr. Long's question is:  No one knows.

Thanks for your _informed_ reply, Mr. Diamond. You are correct that this has
nothing to do with the value of the expression and everything to do with the
form of the expression. I am also not concerned with what a sensible compiler
should do. This is comp.STD.c, and we are concerned with the Standard, not what
makes sense. :-)

I would say that the answer to my question is that the example I gave requires
a diagnostic, and a compiler that does not generate one, such as Sun's acc and
the Gnu compiler, is therefore not a conforming implementation. Period. That
may not have been the intention of the committee, but that is how the Standard
is worded, and it has not been corrected in a TC. If we fudge on this point,
why not others?

-- 
Paul Long                               45:29:14N 122:48:09W
plong@perf.com                          http://www.teleport.com/~pciwww/
    "Where time or intelligence are lacking, a goto may do the job."
        - M.E. Hopkins, "A Case for the GOTO," 1972.
Technical Details
Message-ID: <4666nu$69h@news0.rain.rg.net>
Path: arc1-ca.pugleaf.net!homer.alpha.net!pacifier!rainrgnews0!usenet
References: <45uevf$d99@news0.rain.rg.net> <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se> <464s1t$lb4@usenet.pa.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!homer.alpha.net!pacifier!rainrgnews0!usenet
From: Paul Long <plong@perf.com>
Newsgroups: comp.std.c
Subject: Re: Comma operator in constant expression
Date: 19 Oct 1995 18:51:42 GMT
Organization: Performance Computing Incorporated
Message-ID: <4666nu$69h@news0.rain.rg.net>
References: <45uevf$d99@news0.rain.rg.net> <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se> <464s1t$lb4@usenet.pa.dec.com>
NNTP-Posting-Host: yosemite.perf.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.1 sun4c)
X-URL: news:464s1t$lb4@usenet.pa.dec.com