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:07:16 GMT Organization: Stefan Ram Lines: 16 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 1ZTJuEGq/TviXJugmSi6mAUSDGPSwIuF6bW/2HAfGQqr0U 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++:1085949
ruben safir writes: >what is the anonymous name space and how is it accessed?
When an unnamed namespace is defined as in (»...« denotes the contents, not to be read literally)
namespace { ... }
, this is the same as
namespace unique {} using namespace unique; namespace unique { ... }
, where »unique« is a unique (think: »compiler generated, secret«) identifier used only for this namespace.
-- end of forwarded message --
|
|