🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: references wanted

#2320
From: Lawrence Kirby
Date: Sun, 17 Mar 1996 22:19
35 lines
2076 bytes
In article <4ig2df$g9v@solutions.solon.com> ANH@KUHUB.CC.UKANS.EDU  writes:

>
>Just a deep mistrust against 'standard conforming' compilers.
>
>Anh
>
>In article <4iekg0$9os@solutions.solon.com>, yang@math.umass.edu (Huayong Yang)
> writes:
> > ANH@KUHUB.CC.UKANS.EDU writes:
> > [...]
> > : But here is one simple rule,  always use (Type*)0 and not null for null 
> > : pointer check.  Show my a thousand standards that say I don't need 
> > : to do that, I would still use the construct.
> > 
> > Could you elaborate on this?

If the compiler gets something trivial like this wrong it is going to kick
you in other areas (I assume that by 'check' you mean comparison i.e. a 
context where the type required is unambiguous). If you're that mistrustful
of C compilers I suggest you change languages! The C language has always
made pointer comparison against 0 well defined so even a non-ANSI compiler
should get this right.

(Since others have remarked on a lack of references in my postings to
comp.lang.c.moderated, which results in lack of threading, I'm trying this
as a normal posting. In the past this hasn't worked too well here for
moderated newsgroups hence I've been mailing my postings which fails to
generate references).

-- 
-----------------------------------------
Lawrence Kirby | fred@genesis.demon.co.uk
Wilts, England | 70734.126@compuserve.com
-----------------------------------------
Technical Details
Message-ID: <4ii35r$noa@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4i97jv$8hn@solutions.solon.com> <4iekg0$9os@solutions.solon.com> <4ig2df$g9v@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: references wanted
Date: 17 Mar 1996 16:19:39 -0600
Organization: none
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4ii35r$noa@solutions.solon.com>
References: <4i97jv$8hn@solutions.solon.com> <4iekg0$9os@solutions.solon.com> <4ig2df$g9v@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