[Vala] GenericArray problem
- From: Andy Lees <andrewl oz gmail com>
- To: vala-list <vala-list gnome org>
- Subject: [Vala] GenericArray problem
- Date: Sat, 17 Oct 2015 10:22:27 +1100
Hi,
If I declare a derived class of GenericArray, like so:
public class IntArray : GenericArray<int> {
public IntArray() {
}
}
I get a gcc error, like so:
/tmp/a.vala.AH856X.c: In function ‘int_array_new’:
/tmp/a.vala.AH856X.c:66:2: error: too few arguments to function
‘g_ptr_array_new_with_free_func’
self = (IntArray*) g_ptr_array_new_with_free_func ();
whereas with Array (for example) it just works.
Is there something I'm doing wrong, or is this a bug?
Using Vala 0.30.0
Regards,
Andrew Lees
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]