Re: [Vala] multiple fields in a single declaration
- From: pancake <pancake youterm com>
- To: Vala ML <vala-list gnome org>
- Subject: Re: [Vala] multiple fields in a single declaration
- Date: Mon, 31 Aug 2009 17:28:59 +0200
Its not dupped at all, my bug report says that the snippet works if the
multiple declarations are defined inside the function, but fails to
compile when the decalaration is outside the function:
FAIL:
---
class Foo {
public Foo() {
stdout.printf("Hello World\n");
}
}
Foo a,b,c;
void main() {
a = new Foo();
b = new Foo();
c = new Foo();
}
---
WORKS:
---
class Foo {
public Foo() {
stdout.printf("Hello World\n");
}
}
void main() {
Foo a,b,c;
a = new Foo();
b = new Foo();
c = new Foo();
}
---
pancake wrote:
dup
http://bugzilla.gnome.org/show_bug.cgi?id=592886
Matías De la Puente wrote:
Hi Adam,
That issue is already in bugzilla, take a look here
http://bugzilla.gnome.org/show_bug.cgi?id=530030
2009/8/31 Adam Dingle <adam yorba org>
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
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
------------------------------------------------------------------------
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
_______________________________________________
Vala-list mailing list
Vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]