Article View: comp.std.c
Article #4274Re: Comma operator in constant expression
From: Paul Long
Date: Thu, 26 Oct 1995 01:25
Date: Thu, 26 Oct 1995 01:25
35 lines
2674 bytes
2674 bytes
fjh@munta.cs.mu.OZ.AU (Fergus Henderson) wrote:
>Paul Long <plong@perf.com> writes:
>>A language standard is not a
>>set of suggested guidelines for tool developers--it is a very exact,
>>necessarily legalistic contract between the consumers and producers of these
>>tools. As consumers, we should settle for no less.
>
>I think a language standard should be exact (and legalistic) where possible,
>but there are many situations where for various reasons this is not
>possible, and in these situations I think a language standard _should_
>offer guidelines.
If the writers of a standards document wish to influence an implementation
without requiring specific behavior, they need to make this distinction
absolutely clear. Ways to accomplish this: place commentary in special
sections, such as an annex, in a separate document, or in non-binding
footnotes, or use special language to indicate desirable behavior. In
telecommunications standards documents, I've seen this distinction made with
"shall" and "must" indicating a requirement, while "should" and "it is desired
that" indicating a, well, desire.
(BTW, I believe that someone said that the ANSI footnotes were not binding, but
that the same footnotes in the ISO document are binding. Can anybody comment on
this?)
>The Ada standard does this well, with "Implementation Advice" sections;
>the C standard is not nearly as good in this respect, IMHO.
Haven't seen it.
--
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:
<46mo27$i7@news0.rain.rg.net>Path:
arc1-ca.pugleaf.net!homer.alpha.net!pacifier!rainrgnews0!usenetReferences:
<45uevf$d99@news0.rain.rg.net> <Pine.ULT.3.91.951017124752.2343A-100000@mars.dsv.su.se> <464s1t$lb4@usenet.pa.dec.com> <Pine.ULT.3.91.951019204530.7241B-100000@mars.dsv.su.se> <466v8b$2em@solutions.solon.com> <Pine.ULT.3.91.951020083514.12953B-100000@mars.dsv.su.se> <r46hwQ9yt9vL084yn@csn.net> <Pine.ULT.3.91.951020164101.11699A-100000@mars.dsv.su.se> <468q49$ljv@news0.rain.rg.net> <9529900.15688@mulga.cs.mu.OZ.AU>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: 26 Oct 1995 01:25:27 GMT Organization: Performance Computing Incorporated Message-ID: <46mo27$i7@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> <Pine.ULT.3.91.951019204530.7241B-100000@mars.dsv.su.se> <466v8b$2em@solutions.solon.com> <Pine.ULT.3.91.951020083514.12953B-100000@mars.dsv.su.se> <r46hwQ9yt9vL084yn@csn.net> <Pine.ULT.3.91.951020164101.11699A-100000@mars.dsv.su.se> <468q49$ljv@news0.rain.rg.net> <9529900.15688@mulga.cs.mu.OZ.AU> 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:9529900.15688@mulga.cs.mu.OZ.AU