🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2484

Re: const pointer confusion...

#2484
From: Lawrence Kirby
Date: Wed, 03 Apr 1996 13:28
35 lines
2399 bytes
In article <4jmcot$ls8@solutions.solon.com>
           jcoffin@rmii.com "Jerry Coffin" writes:

 >In article <4jcknm$a13@solutions.solon.com>, news@Thinkage.On.CA says...
 >
 >> Actually, not all compilers follow the above.  Ours have several levels
 >> of diagnostics.
 >> 
 >> Fatal_errors:  The code is illegal, and so badly screwed up that
 >>        the compiler abandons further source analysis.
 >> Errors: The compiler detected something illegal and will not continue
 >>         other passes.  No usable object deck (loader input) will
 >>         be produced.  The compiler does try to analyse for other
 >>         errors.
 >> Warning: The code is illegal, but the compiler thinks it can generate
 >>         code to do what the programmer wanted.  (The duplicate
 >>         qualifier probably gets this.)  A usable object deck is
 >>         produced.
 >
 >Hmm...an interesting way of going at things.  Given the wording of the 
 >standard, I'm not sure you can say the implementation isn't conforming because 
 >of this, but I rather doubt it's exactly what was intended.  Does it behave 
 >this way regardless of whether ISO conformance is requested?

A warning is a perfectly good diagnostic and as long as the compiler generates
some sort of message for every program that contains a syntax error
or constraint violation it is conforming in that respect. Whether the
compiler proceeds to generate executable code is up to it, the standard
has nothing to say about this.

-- 
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID: <4jtuec$3vb@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4j41hs$nku@solutions.solon.com><4j639l$3ju@solutions.solon.com><4ja3rl$pa9@solutions.solon.com><4jcknm$a13@solutions.solon.com> <4jmcot$ls8@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Lawrence Kirby <fred@genesis.demon.co.uk>
Newsgroups: comp.lang.c.moderated
Subject: Re: const pointer confusion...
Date: 3 Apr 1996 07:28:44 -0600
Organization: none
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4jtuec$3vb@solutions.solon.com>
References: <4j41hs$nku@solutions.solon.com><4j639l$3ju@solutions.solon.com><4ja3rl$pa9@solutions.solon.com><4jcknm$a13@solutions.solon.com> <4jmcot$ls8@solutions.solon.com>
Reply-To: fred@genesis.demon.co.uk
NNTP-Posting-Host: solutions.solon.com
X-NNTP-Posting-Host: genesis.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.27
X-Mail2News-Path: genesis.demon.co.uk