[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KDE 4 namespaces
From:       Frans Englich <frans.englich () telia ! com>
Date:       2005-05-09 18:59:53
Message-ID: 200505091908.35833.frans.englich () telia ! com
[Download RAW message or body]

On Monday 09 May 2005 11:27, Thiago Macieira wrote:
> David Faure wrote:
> >* but for libs "above" those (KIO, KParts, KABC, etc.), we would use
> > namespaces. We already mostly do, except for half of KIO.
>
> In the case of KIO, I'd like to see the ioslave-related classes moved to
> another library. There's no need for SlaveBase, TCPSlaveBase & family to
> be in applications.
>
> >On the other hand, a KIO-namespaced class can't move to kdecore later
> > (like KSycoca did), so we have to make sure to get it right from the
> > start. Let's see what this would look like:
>
> We can, with some trickery :-)
>
> namespace KIO
> {
>   class NewClass
>   {
>   };
> }
>
> /* the trick: */
> typedef KIO::NewClass KNewClass;

FWIW; that's a case which is relatively easily detected and fixed with a 
porting script. The less that depends on _COMPAT the better, IMHO.



Cheers,

		Frans
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic