From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: CC-mode highlight change between 24.5 and 25 Date: Fri, 2 Sep 2016 11:21:44 -0600 Organization: XCP-1 Message-ID: <927dea11-9b8d-15ab-1cea-27037c55796f@lanl.gov> References: <878tvaeco8.fsf@oremacs.com> <20160902132704.GC4439@acm.fritz.box> <87poomcrm3.fsf@oremacs.com> <20160902143103.GD4439@acm.fritz.box> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1472836954 29151 195.159.176.226 (2 Sep 2016 17:22:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Sep 2016 17:22:34 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2 Cc: emacs-devel@gnu.org, Oleh Krehel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 02 19:22:31 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfsAe-0006oq-3q for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2016 19:22:28 +0200 Original-Received: from localhost ([::1]:43228 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfsAb-0007fD-Lz for ged-emacs-devel@m.gmane.org; Fri, 02 Sep 2016 13:22:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfsA5-0007f6-AD for emacs-devel@gnu.org; Fri, 02 Sep 2016 13:21:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bfsA0-0003dB-UX for emacs-devel@gnu.org; Fri, 02 Sep 2016 13:21:52 -0400 Original-Received: from proofpoint5.lanl.gov ([2001:400:4210:400::a5]:55865) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bfsA0-0003cv-JO for emacs-devel@gnu.org; Fri, 02 Sep 2016 13:21:48 -0400 Original-Received: from mailrelay2.lanl.gov (mailrelay2.lanl.gov [128.165.4.103]) by mailgate5.lanl.gov (8.15.0.59/8.15.0.59) with ESMTP id u82HLiFd011084; Fri, 2 Sep 2016 11:21:44 -0600 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 63C35F415CB; Fri, 2 Sep 2016 11:21:44 -0600 (MDT) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay2.lanl.gov Original-Received: from chinstrap.lanl.gov (chinstrap.lanl.gov [128.165.123.246]) by mailrelay2.lanl.gov (Postfix) with ESMTP id 4741AF415C8; Fri, 2 Sep 2016 11:21:44 -0600 (MDT) In-Reply-To: <20160902143103.GD4439@acm.fritz.box> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.15.154, 1.0.3, 0.0.0000 definitions=2016-09-02_05:2016-09-02, 2016-09-02, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 2001:400:4210:400::a5 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:207138 Archived-At: >> I think it very uncommon to declare a function inside another function >> in C++: it's done in top-level instead. > > Is it even valid C++? Yes. It is a GCC extension to _define_ a function inside another (unless the inner function is nested inside a class defined in the outer function), but it is strictly conforming to declare one in C or in C++. (The function so-declared is indistinguishable from one declared in the enclosing file/namespace scope, except that its name is invisible outside the function containing the declaration.) Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.