Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread tobias
On 23.07.2011 20:29, nando wrote: > Ok, so the following line... > >DIM Q AS NEW myClass[5] > > would need... > >FOR i = 0 TO 4 > myClass[i] = NEW myClass >NEXT > > > to instantiate each myClass object. > > The _init would then execute creating the string objects > > Does this line

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
embedded strings too? -- Original Message --- From: "nando" To: mailing list for gambas users Sent: Sat, 23 Jul 2011 14:24:17 -0400 Subject: Re: [Gambas-user] Do embeded objects get released too upon destruction ? > Does not the following line make the class "_i

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread nando
is gone, as in: myClass[2] = NULL Is there a deep unreference to the embedded objects? -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 23 Jul 2011 15:26:56 +0200 Subject: Re: [Gambas-user] Do embeded objec

Re: [Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-23 Thread Benoît Minisini
> Question: > > If I have a class 'myClass' with the following: > > DIM k = NEW OBJECT[100] > > PUBLIC SUB _init() > >DIM i AS INTEGER > >FOR i = 1 TO 100 > k[i] = NEW STRING[] 'add a string array > k[i].add("HELLO")'add one element with

[Gambas-user] Do embeded objects get released too upon destruction ?

2011-07-20 Thread nando
Question: If I have a class 'myClass' with the following: DIM k = NEW OBJECT[100] PUBLIC SUB _init() DIM i AS INTEGER FOR i = 1 TO 100 k[i] = NEW STRING[] 'add a string array k[i].add("HELLO")'add one element with "HELLO" NEXT