From owner-freebsd-current@FreeBSD.ORG Mon Mar 1 07:03:09 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 468DB16A4CE for ; Mon, 1 Mar 2004 07:03:09 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id F15D443D1F for ; Mon, 1 Mar 2004 07:03:08 -0800 (PST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: from dibbler.crodrigues.org (h00609772adf0.ne.client2.attbi.com[66.31.45.197]) by comcast.net (sccrmhc12) with ESMTP id <2004030115030801200hg9rfe>; Mon, 1 Mar 2004 15:03:08 +0000 Received: from dibbler.crodrigues.org (localhost.crodrigues.org [127.0.0.1]) i21F37Ac072773; Mon, 1 Mar 2004 10:03:08 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by dibbler.crodrigues.org (8.12.11/8.12.10/Submit) id i21F33Na072772; Mon, 1 Mar 2004 10:03:03 -0500 (EST) (envelope-from rodrigc) Date: Mon, 1 Mar 2004 10:03:03 -0500 From: Craig Rodrigues To: Thomas David Rivers Message-ID: <20040301150303.GA72625@crodrigues.org> References: <200402291546.i1TFkZ0w070591@grimreaper.grondar.org> <200403011315.i21DFvC95798@lakes.dignus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403011315.i21DFvC95798@lakes.dignus.com> User-Agent: Mutt/1.4.1i cc: current@freebsd.org cc: mark@grondar.org Subject: Re: NULL vs 0 vs 0L bikeshed time X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2004 15:03:09 -0000 On Mon, Mar 01, 2004 at 08:15:57AM -0500, Thomas David Rivers wrote: > But - I believe (and I need to check on this) that the C++ > standard requires the NULL constant to be a pointer type (so > various conversions work.) This is from the C++ standard: 18.1 Types 4 The macro NULL is an implementation defined C++ null pointer constant in this International Standard (4.10). 180) 180) Possible definitions include 0 and 0L, but not (void*)0. -- Craig Rodrigues http://crodrigues.org rodrigc@crodrigues.org