Re: [Vala] vala-list.gnome.org



Just use the full name with namespaces:

new Gee.ArrayList...

I have faced this situation some mNy times and wonder if vala supports a way to specify which classes priorize in short name from which namespace.

Something like this will be good to have in the language:

using Gee (ArrayList);

So if you useArrayList in the code. The compiler will get it from Gee. Likethe from import syntax in python or the static import in java.

The error that cannot find gee namespace denotesthe lack of gee installed or missing --pkg

On Nov 18, 2009, at 3:43 AM, "G.S.Alex" <sthots gmail com> wrote:

It seems that I've meet some problems with libgee.
The sample code works fine. But when I try to compile Vala toy for
gedit and Vala plugin for anjuta, it syas:

symbol.vala:23.7-23.9: error: The namespace name `Gee' could not be found
using Gee;
     ^^^

I've looked into the makefile.am and find that there is no " --pkg
gee-1.0 ". But when I add it manually ,  errors change to :

utils.vala:40.21-40.37: error: `ArrayList' is an ambiguous reference
between `Vala.ArrayList' and `Gee.ArrayList'
       var results = new ArrayList<string> ();
                         ^^^^^^^^^^^^^^^^^

Could anyone help me ? Thanks a lot.
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]