From owner-freebsd-arch@FreeBSD.ORG Fri Jan 28 17:33:45 2005 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C37816A4CE for ; Fri, 28 Jan 2005 17:33:45 +0000 (GMT) Received: from mx1.originative.co.uk (freebsd.gotadsl.co.uk [81.6.249.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1525A43D2F for ; Fri, 28 Jan 2005 17:33:45 +0000 (GMT) (envelope-from paul@mx1.originative.co.uk) Received: from localhost (unknown [127.0.0.1]) by mx1.originative.co.uk (Postfix) with ESMTP id B9D3615575 for ; Fri, 28 Jan 2005 17:33:43 +0000 (GMT) Received: from mx1.originative.co.uk ([127.0.0.1])port 10024) with ESMTP id 83633-06 for ; Fri, 28 Jan 2005 17:33:27 +0000 (GMT) Received: by mx1.originative.co.uk (Postfix, from userid 1000) id C8D8815579; Fri, 28 Jan 2005 17:33:27 +0000 (GMT) Date: Fri, 28 Jan 2005 17:33:27 +0000 From: Paul Richards To: arch@freebsd.org Message-ID: <20050128173327.GI61409@myrddin.originative.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: c99/c++ localised variable definition X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jan 2005 17:33:45 -0000 This is likely to he highly contraversial, since generally change tends to be in this project. People used to programming in C++ or Perl (and many others) are used to defining variables as near to use as possible. This have never been possible before in C, but now with c99 it is. Personally, I find the c++/perl convention to be much less error prone and more intuitive and since c99 now supports it too it seems the standards body sees the benefits of this approach as well. So, are we going to start allowing this feature to be used in FreeBSD since it would require a pretty major change to style(9). I noticed when trying to use this feature that we're not running the compiler with c99 fully supported yet so I guess that's perhaps the first step to discuss. -- Paul Richards