Re: [Vala] Why is there no access to instance data defined in constructor?

On Mon, Jul 25, 2011 at 01:55:41PM +0200, Fred van Zwieten wrote:
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. but it doesn't have the value set in the constructor. Why
not? This is also true for initial value assignment (public int foo =

When I set it in another method (not the constructor) all is well.

Hi, can you show a test case please?

-- - The Universal Operating System

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]