Re: [Vala] `Gee.List' is not a class, struct, or error code



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]