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

List:       kde-core-devel
Subject:    Re: KDE 4 namespaces
From:       Thiago Macieira <thiago () kde ! org>
Date:       2005-05-09 19:29:55
Message-ID: 200505091629.56913.thiago () kde ! org
[Download RAW message or body]


Martijn Klingens wrote:
>> > 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.

This is not what I meant here. This was related to the moving of a 
namespaced class to a non-namespaced library.

But signals and slots become a problem: it's string comparison, so the old 
name must be used throughout, if this class is passed as a parameter in 
any signal or slot.

-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."

[Attachment #3 (application/pgp-signature)]

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

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