[Vala] multiple fields in a single declaration



Vala lets me declare multiple local variables in a single declaration:

void foo() {
   int a, b;    // OK
}

But if I attempt to declare multiple fields in a single declaration I get a syntax error:

class Foo {
   int a, b;   // syntax error
}

Is this by design? Or are multiple fields per declaration simply not yet implemented?

adam




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