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:26 2011 Return-Path: X-Original-To: archive-at-mrbrklyn.com Delivered-To: archive-at-mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix) id 19B68100B93; Sun, 5 Jun 2011 00:27:25 -0400 (EDT) Delivered-To: hangout-outgoing-at-www2.mrbrklyn.com Received: by www2.mrbrklyn.com (Postfix, from userid 28) id 385C5100B8E; Sun, 5 Jun 2011 00:27:23 -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 9963E100B32 for ; Sun, 5 Jun 2011 00:27:22 -0400 (EDT) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mailbackend.panix.com (Postfix) with ESMTP id D195932EFA for ; Sun, 5 Jun 2011 00:27:35 -0400 (EDT) Received: by panix2.panix.com (Postfix, from userid 20529) id C23EE33C6F; Sun, 5 Jun 2011 00:27:35 -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: <20110605042735.C23EE33C6F-at-panix2.panix.com> Date: Sun, 5 Jun 2011 00:27:35 -0400 (EDT) Sender: owner-hangout-at-mrbrklyn.com Precedence: bulk Reply-To: hangout-at-mrbrklyn.com
-- forwarded message -- Path: reader1.panix.com!panix!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!not-for-mail From: ram-at-zedat.fu-berlin.de (Stefan Ram) Newsgroups: comp.lang.c++ Subject: Re: Anonymous namespace Date: 3 Jun 2011 02:54:29 GMT Organization: Stefan Ram Lines: 12 Expires: 1 Sep 2011 11:59:58 GMT Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de /QMWQXSAsLNRgYGUmHUDZQDR1r2yBd7WgiwEEbDerDYgZ7 X-Copyright: (C) Copyright 2011 Stefan Ram. All rights reserved. Distribution through any means other than regular usenet channels is forbidden. It is forbidden to publish this article in the world wide web. It is forbidden to change URIs of this article into links. It is forbidden to remove this notice or to transfer the body without this notice. X-No-Archive: Yes Archive: no X-No-Archive-Readme: "X-No-Archive" is only set, because this prevents some services to mirror the article via the web (HTTP). But Stefan Ram hereby allows to keep this article within a Usenet archive server with only NNTP access without any time limitation. X-No-Html: yes Content-Language: en Xref: panix comp.lang.c++:1085954
ruben safir writes: >Can the object in the namespace be accessed in main with :: >::i = 20;
Yes, the using-namespace declaration has declared i in the global namespace.
>What is the point of the anonymous namespace.
Names can be hidden from the linker (from other translation units), even if they should have external linkage.
-- end of forwarded message --
|
|