Summary: | [Qyoto] Usage of delegates over "connections" desired | ||
---|---|---|---|
Product: | [Unmaintained] bindings | Reporter: | Rohde Fischer <krdata> |
Component: | general | Assignee: | kde-bindings |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | arno |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Rohde Fischer
2009-08-27 10:46:04 UTC
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@kde.org. :) Closing this as invalid for now. |