Re: [Vala] struct value boxing in GLib.Array

You really need to try the sample and examine the c code. In the attempt that passes vala syntax it generates 
code expecting g_array_index to return a ref. However it returns an lvalue.

On 22 Jul 2011, at 16:50, Maciej Marcin Piechotka <uzytkownik2 gmail com> wrote:

On Thu, 2011-07-21 at 10:54 +0100, Michael Brown wrote:
The second nail in the coffin,
so to speak, is that struct returns in vala are done via a pointer
into the method. g_array_index returns an l-value of the actual array
Nice for C code, but not for codegen. 

Wouldn't returning a reference/pointer to struct solved this particular

vala-list mailing list
vala-list gnome org

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