[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: KDE 4 namespaces
From: Martijn Klingens <klingens () kde ! org>
Date: 2005-05-09 19:02:53
Message-ID: 200505092102.54509.klingens () kde ! org
[Download RAW message or body]
On Monday 09 May 2005 21:08, Frans Englich wrote:
> > >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;
And AFAICS it doesn't work at all with signal/slot connections, as those rely
on the real namespace.
> 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.
Porting scripts have their own problems though, see Coolo's experiences with
qt3toqt4 in kdelibs for a good example :)
--
Martijn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic