Re: [Vala] [PATCH] Belongs_to and is_instance for vapigen
- From: tecywiz121 <tecywiz121 hotmail com>
- To: Evan Nemerson <evan coeus-group com>
- Cc: vala-devel-list gnome org
- Subject: Re: [Vala] [PATCH] Belongs_to and is_instance for vapigen
- Date: Fri, 1 Oct 2010 22:49:09 -0400
On Tue, 2010-09-28 at 10:15 -0700, Evan Nemerson wrote:
> On Mon, 2010-09-27 at 17:34 -0400, tecywiz121 wrote:
> > Hello vala developers!
> >
> > I updated my old patch adding belongs_to and is_instance options to
> > vapigen, and I was wondering if I could get them included in vapigen.
> > They are quite useful in wrapping not-entirely-glib libraries.
>
> How is belongs_to different from parent?
Okay, so I tried my generation with parent instead of belongs_to. I got
a bunch of errors along the lines of:
error: `cp.Body' is not a type
Even though the classes are defined in my chipmunk-custom.vala file.
Correct me if I am wrong, but I think the way parent works is by adding
functions to a type that was parsed by vala-gen-introspect. Belongs_to
will add the function to types that are defined near the end of
generating the vapi file.
Anyways, thanks for your input!
Sam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]