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 <[email protected]> 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
>> passed
>> into the method. g_array_index returns an l-value of the actual array
>> entry.
>> Nice for C code, but not for codegen. 
> 
> Wouldn't returning a reference/pointer to struct solved this particular
> problem?
> 
> Regards
> _______________________________________________
> vala-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to