Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mcnc!gatech!bloom-beacon!husc6!cmcl2!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: NULL, zero, and readable code Message-ID: <6166@brl-smoke.ARPA> Date: Fri, 24-Jul-87 21:16:51 EDT Article-I.D.: brl-smok.6166 Posted: Fri Jul 24 21:16:51 1987 Date-Received: Sat, 25-Jul-87 16:45:46 EDT References: <8170@brl-adm.ARPA> <44200004@uicsrd> <6107@brl-smoke.ARPA> <802@cpocd2.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB)) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <802@cpocd2.UUCP> howard@cpocd2.UUCP (Howard A. Landman) writes: >This might mean that widely used tests such as > if (p) >where p is a pointer, are simply wrong! I couldn't follow your reasoning, but we've been over this MANY times and you're mistaken. I think your problem is that you think in terms of converting pointers to integer quantities for the zero comparisons, but that is the exact opposite of the type conversions required by the language rules.