Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!udel!rochester!PT.CS.CMU.EDU!sei!sei.cmu.edu!firth From: firth@sei.cmu.edu (Robert Firth) Newsgroups: comp.lang.c Subject: Re: Possible extension to C?? Message-ID: <3829@aw.sei.cmu.edu> Date: 18 Jan 88 20:20:35 GMT References: <3306@ihlpf.ATT.COM> <333@splut.UUCP> Sender: netnews@sei.cmu.edu Reply-To: firth@bd.sei.cmu.edu.UUCP (Robert Firth) Organization: Carnegie-Mellon University, SEI, Pgh, Pa Lines: 25 In article <333@splut.UUCP> jay@splut.UUCP (Jay Maynard) writes: >In article <3306@ihlpf.ATT.COM>, nevin1@ihlpf.UUCP writes: >> I feel that *0 should be equal to 0 (at least for the data types char, short, >> int, long and 'pointer'). > >for (i = 0; i < 100; i++) { > repeat_after_me('All the world is not a VAX (thankfully).'); > } > >This gives me more headaches porting things to my AT than any other issue >(even the 64K max object size). Hey, Jay, not so fast there! The REAL Vax, that is, Vax+VMS, does absolutely the right thing here. It maps data page zero out of virtual memory so that almost all attempts to dereference a null pointer crash at once. If you must pillory in public the people who tried to make *0 = 0, I will line up right behind you with an armful of dead cats. But please make sure you have the right people. ; ; ;