Re: [Gambas-user] Class Constructor private var questions

2012-02-13 Thread Emil Lenngren
2) The _new method is optional. 3) All instance variable assignments written at the declarations are done before the _new method is executed. 1) These asignments are actually done in a special generated hidden method called $new (which is executed before _new). /Emil 2012/2/13 nando > I wanted

[Gambas-user] Class Constructor private var questions

2012-02-12 Thread nando
I wanted to verify that.. example: I have a class called 'X' with a private variable PRIVATE my_int AS INTEGER = -14 PUBLIC SUB _NEW()'===constructor=== my_int = -15 END Questions: 1) The =-14 act as a constructor automatically for a _NEW instantiation? 2) The =-15 occur as a manu