Re: [Gambas-user] inheritance problems

2012-02-04 Thread Shane Powell
On 05/02/12 06:34, Jussi Lahtinen wrote: >> thats what i want to know it seems that public variables are copy when a >> class is inherited >> and the value they where when you inherit them is only used from then on >> >> i made a test app i must be doing something wrong >> this app just uses intege

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
> thats what i want to know it seems that public variables are copy when a > class is inherited > and the value they where when you inherit them is only used from then on > > i made a test app i must be doing something wrong > this app just uses integers > There are two objects, myc1 and myc2. And

Re: [Gambas-user] inheritance problems

2012-02-04 Thread nando
cular references. If you deliberately program this way, you'll get a headache. Looks like it's starting. -- Original Message --- From: Shane Powell To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 04 Feb 2012 19:31:27 +1100 Subject: Re: [Gambas-user] inher

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
I think you need to send project which demonstrates this problem. Maybe Gambas should raise error. Jussi On Sat, Feb 4, 2012 at 14:42, Jussi Lahtinen wrote: > Seems like circular reference. > Class2 inherits array of it self, which then inherits array of it self, > which ... > > Jussi > > > >

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Jussi Lahtinen
Seems like circular reference. Class2 inherits array of it self, which then inherits array of it self, which ... Jussi On Sat, Feb 4, 2012 at 03:05, Shane Powell wrote: > > I have this in my program > > class 1 > public array of class 2 > > class 2 > inherits class 1 > access array

Re: [Gambas-user] inheritance problems

2012-02-04 Thread Shane Powell
1100 > Subject: Re: [Gambas-user] inheritance problems > >> On 04/02/12 15:57, nando wrote: >>> How can it be empty AND have elements in it? >>> >>> >>> -- Original Message --- >>> From: Shane Powell >>> To: mailing list

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
PUBLIC myint is only exactly one variable. It's public. -- Original Message --- From: Shane Powell To: nand...@nothingsimple.com, mailing list for gambas users Sent: Sat, 04 Feb 2012 17:16:17 +1100 Subject: Re: [Gambas-user] inheritance problems > On 04/02/12 15:5

Re: [Gambas-user] inheritance problems

2012-02-03 Thread Shane Powell
On 04/02/12 15:57, nando wrote: How can it be empty AND have elements in it? -- Original Message --- From: Shane Powell To: mailing list for gambas users Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems I have this in my program class 1

Re: [Gambas-user] inheritance problems

2012-02-03 Thread nando
How can it be empty AND have elements in it? -- Original Message --- From: Shane Powell To: mailing list for gambas users Sent: Sat, 04 Feb 2012 12:05:24 +1100 Subject: [Gambas-user] inheritance problems > I have this in my program > > class 1 >public arra

[Gambas-user] inheritance problems

2012-02-03 Thread Shane Powell
I have this in my program class 1 public array of class 2 class 2 inherits class 1 access array of class 2 in class 1 but array is empty but i know it has elements in it what am i doing wrong ? -- Tr