From owner-freebsd-hackers@FreeBSD.ORG Tue May 5 03:50:24 2009 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C48671065680 for ; Tue, 5 May 2009 03:50:24 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8273A8FC14 for ; Tue, 5 May 2009 03:50:19 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 5512166794 for ; Tue, 5 May 2009 05:50:18 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1000) id BCA1C1BDCD7; Tue, 5 May 2009 05:50:34 +0200 (CEST) Date: Tue, 5 May 2009 05:50:34 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20090505035034.GH3417@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <200905041046.02920.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200905041046.02920.jhb@freebsd.org> User-Agent: Mutt/1.5.19 (2009-01-05) Subject: Re: Definition of NULL X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 May 2009 03:50:25 -0000 On Mon, May 04, 2009 at 10:46:02AM -0400, John Baldwin wrote: > I think this would be ok to let C++ work in the kernel. "Embedded" C++ (no > exceptions and no dynamic_cast<>) should work fine in theory. I would not > change the value of NULL that userland sees though as I think that may be too > risky. Well, use __null if present all the time, fallback to the alternatives as currently defined. Joerg