Re: [Vala] Signal connect syntax
- From: pancake <pancake youterm com>
- To: vala-list gnome org
- Subject: Re: [Vala] Signal connect syntax
- Date: Wed, 15 Apr 2009 16:22:42 +0200
lambdas can be used with .connect() ?
is there any disconnect_all() or so?
Jürg Billeter wrote:
The syntax for connecting and disconnecting signal handlers using += and
-= has been inherited from the C# syntax. As described in bug 566847
[1], using these operators does not seem appropriate for signals.
Therefore, the syntax has now been deprecated by
foo.clicked.connect (handler);
foo.clicked.disconnect (handler);
The old syntax still works and will continue to be supported for the
foreseeable future to not break existing code. A future compiler version
might print a warning when not using --enable-deprecated.
Jürg
[1] http://bugzilla.gnome.org/show_bug.cgi?id=566847
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]