[Kde-bindings] [Bug 205311] [Qyoto] Usage of delegates over "connections" desired

Richard Dale rdale at foton.es
Sun Aug 30 15:53:13 UTC 2009


On Saturday 29 August 2009 01:38:34 am Arno Rehn wrote:
> https://bugs.kde.org/show_bug.cgi?id=205311
>
>
> Arno Rehn <kde at arnorehn.de> changed:
>
>            What    |Removed                     |Added
> ---------------------------------------------------------------------------
>- Status|UNCONFIRMED                 |RESOLVED
>                  CC|                            |kde at arnorehn.de
>          Resolution|                            |INVALID
>
>
>
>
> --- Comment #1 from Arno Rehn <kde arnorehn de>  2009-08-29 02:38:34 ---
> You can already connect a signal to a delegate with
>
> Connect(this, SIGNAL("foo()"), delegate {
>     Console.WriteLine("Hello World!");
> });
>
> The problem with mapping signals to .NET events is that signals can be
> overloaded, but events can't.
>
> I'm thinking about using a syntax like
> Connect<int>(this.Signals.Foo, this.Foo) to make it easier to use signals
> and slots, but this is still not really .NET-like.
>
> If you have ideas on how to improve the situation, feel free to post them
> here or (better) send them to kde-bindings at kde.org. :)
>
> Closing this as invalid for now.
Maybe it would be a good idea to have a page on the KDE Techbase Wiki about 
this? That would be better than the kde-bindings.kde.org mailing list or 
bugs.kde.org because the arguments for and against would be less likely to get 
lost and consequently endlessly repeated.

-- Richard



More information about the Kde-bindings mailing list