Your message dated Sun, 19 Feb 2012 14:59:59 +0100
with message-id <1329659999.21519.2.camel@puppet>
and subject line Re: Vala doesn't handle structs in arrays correctly
has caused the Debian Bug report #658642,
regarding Vala doesn't handle structs in arrays correctly
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
658642: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=658642
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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);
}

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---
--- Begin Message ---
Version: 0.14.2-1

The latest update[0] to Vala 0.14.2 adds the patch from Luca Bruno[1],
so I'm closing this bug now.

Best regards

Alexander Kurtz

[0] http://packages.qa.debian.org/v/vala-0.14/news/20120209T003357Z.html
[1] 
http://git.gnome.org/browse/vala/commit/?h=0.14&id=29426b0482ca7b2593bf7f19ea83fa91e6beb5b4

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to