[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: usage of namespaces
From: |
Jules Bean |
Subject: |
Re: usage of namespaces |
Date: |
Thu, 6 Jun 2002 10:59:35 +0100 |
User-agent: |
Mutt/1.3.28i |
On Thu, Jun 06, 2002 at 11:39:09AM +0200, Ingo Ruhnke wrote:
> Ingo Ruhnke <address@hidden> writes:
>
> > The problem is when a libraries doesn't have its own namespace, so
> > some of the Pingus stuff can conflict with the library. Hm, but ok
> > then one could put the library into a namespace instead of the
> > application. Well, I never created namespaces myself so I don't really
> > know what I am doing.
>
> And beside that a 'namespace Pingus' shouldn't make much difference,
> since everything in Pingus should be in namespace Pingus one wouldn't
> have to use tons of 'Pingus::' in the header files. In the .cc files
> one can use 'using namespace Pingus::...'
>
> Anyway, in src/worldmap/PingusWorldMapNode* I have now inserted a
> Pingus and a Pingus::WorldMap namespace.
Personally, I think it's a good idea. It makes subroutine names
shorter (in contexts where the namespace is in scope) which in turn
makes code easier to read, which makes it easier to understand...
Jules