From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6355 invoked by alias); 14 Apr 2012 11:41:51 -0000 Received: (qmail 6346 invoked by uid 22791); 14 Apr 2012 11:41:50 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-lb0-f175.google.com (HELO mail-lb0-f175.google.com) (209.85.217.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 14 Apr 2012 11:41:37 +0000 Received: by lbbgk1 with SMTP id gk1so438405lbb.20 for ; Sat, 14 Apr 2012 04:41:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.103.74 with SMTP id fu10mr2242252lbb.1.1334403696352; Sat, 14 Apr 2012 04:41:36 -0700 (PDT) Received: by 10.112.85.98 with HTTP; Sat, 14 Apr 2012 04:41:36 -0700 (PDT) In-Reply-To: References: <4F7B356E.9080003@google.com> <4F7C2E74.6010501@google.com> <4F893ECA.6070004@adacore.com> Date: Sat, 14 Apr 2012 11:41:00 -0000 Message-ID: Subject: Re: Switching to C++ by default in 4.8 From: Jonathan Wakely To: Chiheng Xu Cc: Robert Dewar , Richard Guenther , Diego Novillo , Gabriel Dos Reis , David Edelsohn , gcc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2012-04/txt/msg00638.txt.bz2 On 14 April 2012 11:02, Chiheng Xu wrote: > > If debugger fully support namespace, that will be nice. I just say, > in case debugger have trouble with namespace, you can avoid it. So it's completely unfounded speculation then. > But personally, when I write C++ code, I never use namespace. =A0I > always prefix my class name(and corresponding source file names) with > proper module name, and put the all source files of a module in its > dedicated sub-directory . =A0This make class name globally unique > throughout the project, and facilitate further re-factoring(searching > and replacing). Find'n'replace is not refactoring.