🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.misc.discuss
Article #1863

Re: Coding Standards are ignorant

#1863
From: Norman Diamond
Date: Thu, 14 Mar 1996 03:03
30 lines
2403 bytes
In article <danpop.826543744@rscernix>, danpop@mail.cern.ch (Dan Pop) writes:
>In <KANZE.96Mar8125719@gabi.gabi-soft.fr> kanze@gabi-soft.fr (J. Kanze) writes:
>>With regards to the -ansi options: for the most part, they just turn on
>>function prototyping, and maybe make a few changes in the preprocessor.
>>They don't necessarily make the compiler ISO conformant.  (On at least
>>one of my compilers, to get anything close to ISO conformance, the
>>option is `-ansi -pendantic', and not just -ansi.)

>But the point remains: it's -ansi and not -iso.

Not quite:  it's -pedantic not -ansi :-)

>Does any of your compilers have a -iso option?  

At least one compiler has a -std option.  That's the good news.  The bad news
is that it's documented (if an online manual page is a document :-)  thus:
     -std Produce errors for constructions that are not compatible with the
          ANSI standard.

Incidentally, when a conforming implementation has to translate and execute
one program that reaches all the specified translation limits, the standard
doesn't promise much about the lucky program.  Therefore an implementation
of some weird language that knows "struct" but doesn't know "union", or
that intuitively fails to conform in many ways, technically still conforms.
Maybe you don't need to name any option :-)
--
 <<  If this were the company's opinion, I would not be allowed to post it.  >>
"I paid money for this car, I pay taxes for vehicle registration and a driver's
license, so I can drive in any lane I want, and no innocent victim gets to call
the cops just 'cause the lane's not goin' the same direction as me" - J Spammer
Technical Details
Message-ID: <4i829o$qbh@usenet.pa.dec.com>
Path: arc1-ca.pugleaf.net!tbj.dec.com!diamond
References: <4gum82$14v4@info4.rus.uni-stuttgart.de> <1996Mar403.23.06.8316@koobera.math.uic.edu> <4he37i$a0u@solutions.solon.com> <4hf9m1$fp8@fg70.rz.uni-karlsruhe.de> <4hfecl$33t@solutions.solon.com> <KANZE.96Mar5131710@slsvgqt.lts.sel.alcatel.de> <danpop.826218405@rscernix> <KANZE.96Mar8125719@gabi.gabi-soft.fr> <danpop.826543744@rscernix>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!tbj.dec.com!diamond
From: diamond@tbj.dec.com (Norman Diamond)
Newsgroups: gnu.misc.discuss,comp.std.c
Subject: Re: Coding Standards are ignorant
Date: 14 Mar 1996 03:03:20 GMT
Organization: Digital Equipment Corporation Japan , Tokyo
Message-ID: <4i829o$qbh@usenet.pa.dec.com>
References: <4gum82$14v4@info4.rus.uni-stuttgart.de>  <1996Mar403.23.06.8316@koobera.math.uic.edu>  <4he37i$a0u@solutions.solon.com> <4hf9m1$fp8@fg70.rz.uni-karlsruhe.de>  <4hfecl$33t@solutions.solon.com>  <KANZE.96Mar5131710@slsvgqt.lts.sel.alcatel.de> <danpop.826218405@rscernix> <KANZE.96Mar8125719@gabi.gabi-soft.fr> <danpop.826543744@rscernix>
Reply-To: diamond@tbj.dec.com (Norman Diamond)
NNTP-Posting-Host: jit533.tbj.dec.com