Re: [Vala] canberra.vapi
- From: Frederik <scumm_fredo gmx net>
- To: vala-list <vala-list gnome org>
- Subject: Re: [Vala] canberra.vapi
- Date: Sat, 11 Jul 2009 18:16:31 +0200
Michael B. Trausch wrote:
On Sat, 11 Jul 2009, Michael 'Mickey' Lauer wrote:
Thanks, that's slightly better, still I'd love to have a classical
way of creating a context, like:
var c = new Canberra.Context();
Is this impossible without changes in the library itself?
You can (with a bit of work) create APIs that are more object-oriented.
You have to do a bit of extra work, though, and the function has to
return a pointer to a structure (at least, AFAIK).
In this case the problem is that the function returns the newly
constructed object as 'out' parameter, not as return value. AFAIK there
is no 'CCode' attribute for telling Vala to treat an 'out' parameter as
] [Thread Prev