[Vala] Signal connect syntax
- From: Jürg Billeter <j bitron ch>
- To: vala-list gnome org
- Subject: [Vala] Signal connect syntax
- Date: Wed, 15 Apr 2009 10:07:13 +0200
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]