[Vala] Problems with static properties
- From: Jan Stępień <jan stepien cc>
- To: vala-list gnome org
- Subject: [Vala] Problems with static properties
- Date: Mon, 26 Oct 2009 07:14:15 +0200
Hi all,
I just have begun hacking with Vala and I found an odd behaviour.
$ cat Test.vala
class Test {
public static int x {get; set;}
Test(int val) { x = val; nop(x); }
private void nop(int a) { }
}
$ valac -C Test.vala
Here's a fragment from Test.c:
static Test* test_construct (GType object_type, gint val) {
Test* self;
self = (Test*) g_type_create_instance (object_type);
test_set_x (val);
test_nop (self); /* Where is the second parameter? */
return self;
}
Shouldn't there be
test_nop (self, test_get_x());
instead of the line to which I added a comment?
Cheers,
--
Jan Stępień <jan stepien cc>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]