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

Arno Rehn kde at arnorehn.de
Sat Aug 29 00:38:34 UTC 2009


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.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kde-bindings mailing list