Re: [Vala] valac can read a typelib in place of a vapi binding

2011-04-02 Thread Jürg Billeter
Hi Adam, On Fri, 2011-04-01 at 13:07 -0700, Adam Dingle wrote: I realized to my surprise today that valac (0.11.7) can read a GObject introspection type library in place of a VAPI file! For example, I can specify '--pkg PeasGtk-1.0' on the command line and valac will read types from

[Vala] 'using' importing too many symbols

2011-04-02 Thread Jim Peters
'using' seems problematic to me. I think we need finer control. For example, this bit of code: using Gee; public void main() { var queue = new QueueObject(); } gives the build error: `Queue' is an ambiguous reference between `GLib.Queue' and `Gee.Queue'. I want to resolve the

Re: [Vala] valac can read a typelib in place of a vapi binding

2011-04-02 Thread Adam Dingle
On 04/02/2011 07:21 AM, Jürg Billeter wrote: Hi Adam, ... 2. Is there a long-term plan to deprecate .vapi files in favor of type libraries? Can type libraries express everything that .vapi files can? GIR files (vala doesn't read typelibs, it reads the xml versions) cannot express everything