[Vala] Why is there no access to instance data defined in constructor?
- From: Fred van Zwieten <fvzwieten gmail com>
- To: vala-list gnome org
- Subject: [Vala] Why is there no access to instance data defined in constructor?
- Date: Mon, 25 Jul 2011 13:55:41 +0200
Hi all,
Warning: vala noob.
I have a instance variable and gave it a value in the class constructor.
The variable is accessible in other methods in the same class (i.e.
this.foo) but it doesn't have the value set in the constructor. Why
not? This is also true for initial value assignment (public int foo =
12)
When I set it in another method (not the constructor) all is well.
Greetz,
Fred
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]