[Vala] Declare an 'in-place' array?



Dear list,

Is there a way to declare an 'in-place' array?
By 'in-place' I mean an array allocated on the stack or within the struct.

struct A {
  int c[10];
}
int main() {
   int a[10];
}

c and a are 'in-place'.

as a constrast, vala by default compiles code into
struct A {
  int * c;
}
int main() {
  int * a;
}

Regards,

Yu



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