[Vala] Vala 0.7.7: unsupported lvalue in postfix expression



Hello,

When I build with the new 0.7.7 compiler I see these sorts of errors:

error: unsupported lvalue in postfix expression

for these sorts of lines:

a[ctr]++;

where a is (for example):

int[] a = new int[3];

The solution seems to be to replace the postfix with the assignment infix
operator:

a[ctr] += 1;

Is this by design?  I'm curious why this change was made.

Thanks,

-- Jim


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