From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6643 invoked from network); 21 Sep 2020 20:49:12 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with ESMTPUTF8; 21 Sep 2020 20:49:12 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id 390259CB81; Tue, 22 Sep 2020 06:49:10 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 43C8F93D33; Tue, 22 Sep 2020 06:48:53 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id C5D6A93D33; Tue, 22 Sep 2020 06:48:51 +1000 (AEST) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) by minnie.tuhs.org (Postfix) with ESMTPS id 432B493D06 for ; Tue, 22 Sep 2020 06:48:51 +1000 (AEST) Received: by sdaoden.eu (Postfix, from userid 1000) id F186F16057; Mon, 21 Sep 2020 22:48:49 +0200 (CEST) Date: Mon, 21 Sep 2020 22:48:48 +0200 From: Steffen Nurpmeso To: John Cowan Message-ID: <20200921204848.lbtLw%steffen@sdaoden.eu> In-Reply-To: References: <202009190151.08J1pYnb066792@tahoe.cs.dartmouth.edu> <202009201842.08KIgn2f022401@freefriends.org> <04211470-AD63-452A-A0BB-6A7A6FD85AAE@gmail.com> <202009202026.08KKQ2x6137303@tahoe.cs.dartmouth.edu> Mail-Followup-To: John Cowan , Clem Cole , The Eunuchs Hysterical Society , Doug McIlroy User-Agent: s-nail v14.9.19 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. Subject: Re: [TUHS] reviving a bit of WWB X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: The Eunuchs Hysterical Society , Doug McIlroy Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" John Cowan wrote in : |The confusion (I dare not call it a flame war) is arising out of the |difference between an object with all bits zero and a 0 constant (or |equivalently 2*0 or 3-3 or what not). 0 in pointer context is always a |null pointer, but it may or may not be all-bits-zero. 0 in integer context |is, on any sane machine, all-bits-zero (on 1's-complement machines it may |also be all-bits-one). | |Personally, when I was programming in C I defined a macro #define |NULLPTR(t) ((t)0), so that I would write NULLPTR(char *) or NULLPTR(int *) |or whatever the Right Thing was. And i think too that POSIX is about to define this explicitly in the future (regarding all bits zero). --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)