From owner-cvs-src@FreeBSD.ORG Wed Jul 9 23:10:55 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B403B1065678; Wed, 9 Jul 2008 23:10:55 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from mailhub.rulez.sk (mailhub.rulez.sk [IPv6:2001:15c0:6672::2]) by mx1.freebsd.org (Postfix) with ESMTP id 58D8C8FC23; Wed, 9 Jul 2008 23:10:55 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by mailhub.rulez.sk (Postfix) with ESMTP id 176725C04E; Thu, 10 Jul 2008 01:10:54 +0200 (CEST) X-Virus-Scanned: amavisd-new at rulez.sk Received: from mailhub.rulez.sk ([78.47.53.106]) by localhost (genesis.rulez.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lBv6QqyYOZfb; Thu, 10 Jul 2008 01:10:53 +0200 (CEST) Received: from DANGER-PC (danger.mcrn.sk [84.16.37.254]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: danger@rulez.sk) by mailhub.rulez.sk (Postfix) with ESMTPSA id 351725C04D; Thu, 10 Jul 2008 01:10:53 +0200 (CEST) Date: Thu, 10 Jul 2008 01:10:45 +0200 From: Daniel Gerzo X-Mailer: The Bat! (v3.99.3) Professional Organization: The FreeBSD Project X-Priority: 3 (Normal) Message-ID: <753889164.20080710011045@rulez.sk> To: Roman Kurakin In-Reply-To: <4874FE82.5090809@localhost.inse.ru> References: <200807091404.m69E4jiC075715@repoman.freebsd.org> <20080709154945.GA47824@zim.MIT.EDU> <4874FE82.5090809@localhost.inse.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: David Malone , cvs-src@FreeBSD.ORG, Daniel Gerzo , src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re[2]: cvs commit: src/share/man/man9 style.9 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Gerzo List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2008 23:10:55 -0000 Hello guys, Wednesday, July 9, 2008, 8:08:02 PM, has been written: >>> -Do not declare functions inside other functions; ANSI C says that >>> -such declarations have file scope regardless of the nesting of the >>> -declaration. >>> -Hiding file declarations in what appears to be a local >>> -scope is undesirable and will elicit complaints from a good compiler. >>> +Do not declare functions inside other functions; nested functions are >>> +a GCC extension and are not permitted by ANSI C. >>> >> >> We use lots of extensions that aren't strict ANSI C. I think the >> real reason not to use them is that gcc's nested functions are >> particularly unwieldily. First, they're not true lexical closures >> (and can't be), which makes them much less useful. Second, they >> are unsupported unless a number of assumptions are met, e.g., must >> have an executable stack, must be able to invalidate the I cache >> from userland, and must not have separate I and D address spaces. >> Nested functions abominable enough that Apple disabled the feature >> in OS X's build of gcc --- and the Sun and Intel compilers don't >> support them, even though Intel claims nearly complete gcc >> compatibility. >> > I think from non-technical side, nested functions are not expected by > most programmers. > From my point of view there are many new extensions that a good for > quick hacking, but > not for the production code. So may I leave my change in the current state, or do you guys want me to do some additional changes? -- Best regards, Daniel mailto:danger@FreeBSD.org