Re: [Vala] `Gee.List' is not a class, struct, or error code
- From: Jürg Billeter <j bitron ch>
- To: fdsdœ Fsfsd <fred_gaudy yahoo fr>
- Cc: vala-list gnome org
- Subject: Re: [Vala] `Gee.List' is not a class, struct, or error code
- Date: Sun, 30 Nov 2008 00:35:58 +0100
On Sat, 2008-11-29 at 23:28 +0000, fdsdœ Fsfsd wrote:
I've got this error message :
Gee.List' is not a class, struct, or error code
with the following code :
void test() {
Gee.List<string> list = null;
list = new Gee.List<string>();
}
Gee.List is an interface, and interfaces can't be instantiated. Try
list = new Gee.ArrayList<string> ();
Jürg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]