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!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!h9g2000yqk.googlegroups.com!not-for-mail From: gwowen Newsgroups: comp.lang.c++ Subject: Re: Anonymous namespace Date: Fri, 3 Jun 2011 01:08:08 -0700 (PDT) Organization: http://groups.google.com Lines: 9 Message-ID: <03464db0-e118-463c-9834-171dab457e42-at-h9g2000yqk.googlegroups.com> References: NNTP-Posting-Host: 89.105.29.244 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1307088488 24504 127.0.0.1 (3 Jun 2011 08:08:08 GMT) X-Complaints-To: groups-abuse-at-google.com NNTP-Posting-Date: Fri, 3 Jun 2011 08:08:08 +0000 (UTC) Complaints-To: groups-abuse-at-google.com Injection-Info: h9g2000yqk.googlegroups.com; posting-host=89.105.29.244; posting-account=QcRbKAoAAADM1CebbVtgwo1TZrfQ-Ch_ User-Agent: G2/1.0 X-HTTP-Via: 1.1 INNISA01 X-Google-Web-Client: true X-Google-Header-Order: VCUHALSRNK X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1,gzip(gfe) Xref: panix comp.lang.c++:1085957
On Jun 3, 3:54=A0am, r...-at-zedat.fu-berlin.de (Stefan Ram) wrote: > >What is the point of the anonymous namespace. > > =A0 Names can be hidden from the linker (from other translation > =A0 units), even if they should have external linkage.
Can someone give the benefits of external-but-unlinkable anon- namespace variables (or functions) against old-school internal linkage file-scope "static" variables and functions. -- end of forwarded message --
|
|