Package: valac-0.12 Version: 0.12.1-2 Severity: minor Hi,
Vala doesn't handle structs in arrays correctly. When compiling and
running the attached program, this is the output:
$ valac-0.12 Test.vala
$ ./Test
element.data = 42, array[23].data = 0
$
I think both values should be 42.
Best regards
Alexander Kurtz
struct Foo {
int data;
public void bar(){
data = 42;
}
}
void main(){
Foo element = { 0 };
Foo[] array = new Foo[100];
element.bar();
array[23].bar();
stdout.printf("element.data = %d, array[23].data = %d\n", element.data, array[23].data);
}
signature.asc
Description: This is a digitally signed message part

