MESSAGE
DATE | 2011-06-05 |
FROM | Ruben Safir
|
SUBJECT | Subject: [NYLXS - HANGOUT] (fwd) Re: Anonymous namespace
|
-- 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 --
|
|