[Vala] Delegates without target
- From: Jürg Billeter <j bitron ch>
- To: vala-list gnome org
- Subject: [Vala] Delegates without target
- Date: Wed, 15 Apr 2009 09:50:53 +0200
Callbacks in C libraries usually have a user_data parameter, which is
used by Vala to pass the object of an instance method. However, some
callbacks do not have a user_data parameter. Vala required bindings to
use the `static' modifier for the delegate to let the compiler know
about this limitation.
The `static' modifier for delegates has been deprecated now by
[CCode (has_target = false)]
The rationale for the change can be found in bug 526549 [1]. The
`static' modifier still works, but the compiler will print a warning in
future versions when not using --enable-deprecated.
Jürg
[1] http://bugzilla.gnome.org/show_bug.cgi?id=526549
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]