Path: utzoo!utgpu!watserv1!watmath!att!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!aries!mcdonald From: mcdonald@aries.scs.uiuc.edu (Doug McDonald) Newsgroups: comp.lang.c Subject: Re: the nil pointer is not zero Message-ID: <1990Nov18.024151.19321@ux1.cso.uiuc.edu> Date: 18 Nov 90 02:41:51 GMT References: <27636@mimsy.umd.edu> <164@nazgul.UUCP> <14516@smoke.brl.mil> Sender: news@ux1.cso.uiuc.edu (News) Organization: School of Chemical Sciences, Univ. of Illinois at Urbana-Champaign Lines: 24 In article <14516@smoke.brl.mil> gwyn@smoke.brl.mil (Doug Gwyn) writes: >In article <164@nazgul.UUCP> bright@nazgul.UUCP (Walter Bright) writes: > >-I think the ANSI C committee missed the boat on this. Thousands of hours >-of wasted time, confusion, and net debate would have been eliminated if >-NULL had been fixed at all bits 0. > >I don't think so. What good would it do you to know how a null pointer >is represented? There is nothing useful you can do about that. The point is that if it were indeed actually all bits zero, in all contexts, period, and so that you could not, for example, say, char *i; int j; scanf("%d",&j); i = (char *) j; and end up with something other than a null pointer if you input 0 to the scanf, then there would be a lot less discussion in comp.lang.c. Doug MCDonald