MESSAGE
DATE | 2011-06-05 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace
|
From owner-hangout-outgoing-at-mrbrklyn.com Sun Jun 5 00:27:36 2011 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix) id 3689F100BBC; Sun, 5 Jun 2011 00:27:35 -0400 (EDT) Delivered-To: hangout-outgoing-at-www2.mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix, from userid 28) id 22001100BB5; Sun, 5 Jun 2011 00:27:33 -0400 (EDT) Delivered-To: hangout-at-nylxs.com Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) by www2.mrbrklyn.com (Postfix) with ESMTP id 7F393100B7D for ; Sun, 5 Jun 2011 00:27:23 -0400 (EDT) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id B6F3232F03 for ; Sun, 5 Jun 2011 00:27:36 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 20529) id 9BFA133C69; Sun, 5 Jun 2011 00:27:36 -0400 (EDT) From: Ruben Safir To: hangout-at-nylxs.com Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (NetBSD/5.1 (i386)) Message-Id: <20110605042736.9BFA133C69-at-panix2.panix.com> Date: Sun, 5 Jun 2011 00:27:36 -0400 (EDT) Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
-- forwarded message -- Path: reader1.panix.com!panix!not-for-mail From: Ruben Safir Newsgroups: comp.lang.c++ Subject: Re: Anonymous namespace Date: Sat, 4 Jun 2011 05:05:59 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 28 Message-ID: References: <94rjavFbjiU7-at-mid.individual.net> NNTP-Posting-Host: www2.mrbrklyn.com Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: reader1.panix.com 1307163959 20952 96.57.23.82 (4 Jun 2011 05:05:59 GMT) X-Complaints-To: abuse-at-panix.com NNTP-Posting-Date: Sat, 4 Jun 2011 05:05:59 +0000 (UTC) X-Blackjet: Blackjet is a Yankee Fan X-DRMisTHEFT: Use GNU Linux today X-From: A Dark Cloud X-LOCATION: Brooklyn NY - Forget abou' it! X-NYLXS: Really - yah think computers are supposed to be broken? User-Agent: Pan/0.133 (House of Butterflies) Xref: panix comp.lang.c++:1086004
On Fri, 03 Jun 2011 20:12:15 +1200, Ian Collins wrote:
> >> >> please expand? > > One way to look at the anonymous namespace is to consider it a namespace > with a cryptic name. That name is only known within the current > compilation unit. Thus anything declared within the namespace can't > been seen elsewhere because the namespace name is unknown. > > So I could write > > namespace { int n; } > > and n would only be visible within the current compilation unit whereas > > int n; > > would be globally visible.
Ok - I'm getting a clearer picture. What specifically did you mean, however, by the phrase "even if they should have external linkage"
This is why I wanted a job with a lot of smart C++ coders. I'd sweep the floor if need be.
Ruben. -- end of forwarded message --
|
|