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

List:       kde-core-devel
Subject:    dcopidl quirk (was Re: DCOP and slots)
From:       Ravi <ravi () kde ! org>
Date:       2004-01-16 1:36:26
Message-ID: 200401152036.26790.ravi () kde ! org
[Download RAW message or body]

On Tuesday 13 January 2004 10:36 am, Gav Wood wrote:
> class
> {
> ...
>   public slots:
>   // MOC_SKIP_BEGIN
>   k_dcop:
>   // MOC_SKIP_END
>   void changeName(...)
> }

This works. Thanks, Gav, I had forgotten about these. I'll look into the right 
place for documenting this. 

Here's another quirk of dcopidl which should be easily fixable:

void blah(const QString &name); // ok.
void blah(QString const &name); // barfs with the following message:
// syntax error, unexpected T_CONST, expecting T_RIGHT_PARANTHESIS or T_COMMA

The second form is actually preferable for prople like me who associate 
modifiers such as const or volatile to the thing on the left; it is a crutch 
when reading/writing declarations like this (yes, it's evil):
  MyClass const * * const m;

Regards,
Ravi

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

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