Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!dsi!dave From: dave@dsi.COM (Dave Rifkind) Newsgroups: comp.lang.c Subject: Re: sizeof a struc field Message-ID: <277@dsi.COM> Date: 16 Oct 89 02:26:28 GMT References: <7710@microsoft.UUCP> <11086@smoke.BRL.MIL> <131@dtoa3.dt.navy.mil> <11227@smoke.BRL.MIL> <7678@cdis-1.uucp> <11263@smoke.BRL.MIL> <10960@riks.csl.sony.co.jp> <11280@smoke.BRL.MIL> Reply-To: dave@dsi.UUCP (Dave Rifkind) Organization: KFW Corporation, Newbury Park, CA Lines: 17 In lots of articles (see References), lots of people say lots of things: Would you think me irascible if I were to say that youse guys have gone standard-happy? Doug Gwyn (I think) says that dereferencing a null pointer is "syntactically meaningless". Nuts! "Null pointer" is not a syntactic concept--it's meaningful only at runtime. Any pointer is potentially a null pointer; you can't determine "nullness" syntactically. To suggest that a compiler should police runtime errors at compile time is silly. It's the compiler's job to convert syntactically valid source into object code. It is not the compiler's job to worry about runtime semantics. And, yes, *every* pointer has a type. The contents of that pointer, whether constant at compile time or variable, do not affect this.