Re: [Vala] Making a class iterable from VAPI bindings
- From: Calvin Walton <calvin walton kepstin ca>
- To: Luca Bruno <lethalman88 gmail com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] Making a class iterable from VAPI bindings
- Date: Sat, 15 Oct 2011 19:27:01 -0400
On Sun, 2011-10-16 at 01:00 +0200, Luca Bruno wrote:
On Sun, Oct 16, 2011 at 12:47 AM, Calvin Walton <calvin walton kepstin ca>wrote:
Now I'm having some additional problems; the code
public static void test(AnnotationList a) {
foreach (unowned Annotation b in a) {
test2(b);
}
}
Is failing to compile, with the error:
test.vala:5.35-5.36: error: duplicating AnnotationList instance, use
unowned variable or explicitly invoke copy method
foreach (unowned Annotation b in a) {
That sounds like a bug, you can report it at bugzilla.gnome.org .
For those following along at home, the bug can be found at
https://bugzilla.gnome.org/show_bug.cgi?id=661876
Thanks for your help, Luca.
--
Calvin Walton <calvin walton kepstin ca>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]