Static stuff..

Allan Sandfeld Jensen kde at carewolf.com
Tue Dec 31 14:00:28 GMT 2002


On Tuesday 31 December 2002 13:18, Simon Hausmann wrote:
> On Tue, Dec 31, 2002 at 06:26:11AM -0500, Christophe Prud'homme wrote:
> > On Tuesday 31 December 2002 06:09 am, Dirk Mueller wrote:
> > > > Shouldn't all that stuff be in the anonymous namespace instead?
> > >
> > > Nope. Those are still exported and the long symbol makes the symbol
> > > lookup far worse.
> >
> > then what about unnamed namespace
> >
> > namespace {
> >   blah blah blah
> > }
>
> anonymous namespace == unnamed namespace. same problem :}
>
But the definition says that anonymous namespaces are behaves as static and 
that static should be converted to anonymous namespaces to be more "C++".

Has something gone wrong between definition and implementation of anonymous 
namespaces?

`Allan




More information about the kde-core-devel mailing list