Re: [Vala] GObject-introspection and vapi
- From: "Jan Hudec" <bulb ucw cz>
- To: "Arc Riley" <arcriley ubuntu com>
- Cc: vala-list gnome org
- Subject: Re: [Vala] GObject-introspection and vapi
- Date: Mon, 19 Apr 2010 07:58:42 +0200 (CEST)
Hello,
On Tue, April 13, 2010 07:51, Arc Riley wrote:
1) Is the .gir expected to be equivalent to the .vapi, i.e. is it
supposed
to
contain all information needed to create the .vapi
No. One of the biggest feature gaps in .gir is you cannot have nested
namespaces, everything in your .gir must exist inside the same
single-level
namespace. Vala supports many namespaces and nested namespaces.
That difference does not imply negative answer to the above question.
Ok, I should have said "a .vapi", because there's no need to get it from
the .gir exactly, just good enough to work. So if .gir does not have nested
namespaces, the resulting vapi either won't have them either or it will
demangle the c:prefix of the namespace instead of using the gir name.
It's similar with the async functions. Gir is not able to represent those,
but you know when you see a function with GCompletion as last argument
and another function with _finish suffix, you can replace them with
a single async.
So to state the question more precisely:
Is there any construct, that vala could generate and describe in a .vapi,
but given just the .gir there is no way to use it at all?
I think that gir is not able to express composite (array and delegate)
arguments in non-standard order (as can be done with CCode attribute in
vapi), but I can't think of anything when not using CCode attributes.
--
- Jan Hudec <bulb ucw cz>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]